Changes MyAppsViewController.noAppsDataSource to non-prefetching data source

This commit is contained in:
Riley Testut
2023-12-08 14:55:51 -06:00
committed by Magesh K
parent 81af866268
commit 86d7afb95d

View File

@@ -181,9 +181,9 @@ private extension MyAppsViewController
return dataSource
}
func makeNoUpdatesDataSource() -> RSTDynamicCollectionViewPrefetchingDataSource<InstalledApp, UIImage>
func makeNoUpdatesDataSource() -> RSTDynamicCollectionViewDataSource<InstalledApp>
{
let dynamicDataSource = RSTDynamicCollectionViewPrefetchingDataSource<InstalledApp, UIImage>()
let dynamicDataSource = RSTDynamicCollectionViewDataSource<InstalledApp>()
dynamicDataSource.numberOfSectionsHandler = { 1 }
dynamicDataSource.numberOfItemsHandler = { _ in self.updatesDataSource.itemCount == 0 ? 1 : 0 }
dynamicDataSource.cellIdentifierHandler = { _ in "NoUpdatesCell" }