Fix app selection when restoring after SUW

This commit is contained in:
Torsten Grote 2024-08-16 09:45:46 -03:00
parent cff5d20342
commit 3397fdbd87
No known key found for this signature in database
GPG key ID: 3E5F77D92CF891FF

View file

@ -85,7 +85,7 @@ internal class AppSelectionManager(
items.add(0, systemItem)
items.addAll(0, systemDataItems)
selectedApps.value =
SelectedAppsState(apps = items, allSelected = true, iconsLoaded = false)
SelectedAppsState(apps = items, allSelected = isSetupWizard, iconsLoaded = false)
// download icons
coroutineScope.launch(workDispatcher) {
val plugin = pluginManager.appPlugin
@ -103,7 +103,7 @@ internal class AppSelectionManager(
item.copy(hasIcon = item.packageName in packagesWithIcons)
}
selectedApps.value =
SelectedAppsState(updatedItems, allSelected = true, iconsLoaded = true)
SelectedAppsState(updatedItems, allSelected = isSetupWizard, iconsLoaded = true)
}
}