Fixes crash when displaying new updates

This commit is contained in:
Riley Testut
2019-09-12 12:49:19 -07:00
parent f01e4ec753
commit e510e9d992
2 changed files with 16 additions and 10 deletions

View File

@@ -333,9 +333,12 @@ private extension MyAppsViewController
UIApplication.shared.applicationIconBadgeNumber = 0
}
UIView.performWithoutAnimation {
self.collectionView.reloadSections(IndexSet(integer: Section.updates.rawValue))
}
if self.isViewLoaded
{
UIView.performWithoutAnimation {
self.collectionView.reloadSections(IndexSet(integer: Section.updates.rawValue))
}
}
}
func refresh(_ installedApps: [InstalledApp], completionHandler: @escaping (Result<[String : Result<InstalledApp, Error>], Error>) -> Void)