mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-18 19:23:43 +01:00
Changes MyAppsViewController.noAppsDataSource to non-prefetching data source
This commit is contained in:
@@ -181,9 +181,9 @@ private extension MyAppsViewController
|
|||||||
return dataSource
|
return dataSource
|
||||||
}
|
}
|
||||||
|
|
||||||
func makeNoUpdatesDataSource() -> RSTDynamicCollectionViewPrefetchingDataSource<InstalledApp, UIImage>
|
func makeNoUpdatesDataSource() -> RSTDynamicCollectionViewDataSource<InstalledApp>
|
||||||
{
|
{
|
||||||
let dynamicDataSource = RSTDynamicCollectionViewPrefetchingDataSource<InstalledApp, UIImage>()
|
let dynamicDataSource = RSTDynamicCollectionViewDataSource<InstalledApp>()
|
||||||
dynamicDataSource.numberOfSectionsHandler = { 1 }
|
dynamicDataSource.numberOfSectionsHandler = { 1 }
|
||||||
dynamicDataSource.numberOfItemsHandler = { _ in self.updatesDataSource.itemCount == 0 ? 1 : 0 }
|
dynamicDataSource.numberOfItemsHandler = { _ in self.updatesDataSource.itemCount == 0 ? 1 : 0 }
|
||||||
dynamicDataSource.cellIdentifierHandler = { _ in "NoUpdatesCell" }
|
dynamicDataSource.cellIdentifierHandler = { _ in "NoUpdatesCell" }
|
||||||
|
|||||||
Reference in New Issue
Block a user