mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-20 12:13:26 +01:00
[AltStore] Fixes incorrect app updates section header
This commit is contained in:
@@ -567,8 +567,12 @@ extension MyAppsViewController
|
|||||||
{
|
{
|
||||||
override func collectionView(_ collectionView: UICollectionView, viewForSupplementaryElementOfKind kind: String, at indexPath: IndexPath) -> UICollectionReusableView
|
override func collectionView(_ collectionView: UICollectionView, viewForSupplementaryElementOfKind kind: String, at indexPath: IndexPath) -> UICollectionReusableView
|
||||||
{
|
{
|
||||||
if indexPath.section == 0
|
let section = Section(rawValue: indexPath.section)!
|
||||||
|
|
||||||
|
switch section
|
||||||
{
|
{
|
||||||
|
case .noUpdates: return UICollectionReusableView()
|
||||||
|
case .updates:
|
||||||
let headerView = collectionView.dequeueReusableSupplementaryView(ofKind: UICollectionView.elementKindSectionHeader, withReuseIdentifier: "UpdatesHeader", for: indexPath) as! UpdatesCollectionHeaderView
|
let headerView = collectionView.dequeueReusableSupplementaryView(ofKind: UICollectionView.elementKindSectionHeader, withReuseIdentifier: "UpdatesHeader", for: indexPath) as! UpdatesCollectionHeaderView
|
||||||
|
|
||||||
UIView.performWithoutAnimation {
|
UIView.performWithoutAnimation {
|
||||||
@@ -593,9 +597,8 @@ extension MyAppsViewController
|
|||||||
}
|
}
|
||||||
|
|
||||||
return headerView
|
return headerView
|
||||||
}
|
|
||||||
else
|
case .installedApps:
|
||||||
{
|
|
||||||
let headerView = collectionView.dequeueReusableSupplementaryView(ofKind: UICollectionView.elementKindSectionHeader, withReuseIdentifier: "InstalledAppsHeader", for: indexPath) as! InstalledAppsCollectionHeaderView
|
let headerView = collectionView.dequeueReusableSupplementaryView(ofKind: UICollectionView.elementKindSectionHeader, withReuseIdentifier: "InstalledAppsHeader", for: indexPath) as! InstalledAppsCollectionHeaderView
|
||||||
|
|
||||||
UIView.performWithoutAnimation {
|
UIView.performWithoutAnimation {
|
||||||
|
|||||||
Reference in New Issue
Block a user