Merge pull request #720 from grote/fix-app-selection

Fix app selection when restoring after SUW
This commit is contained in:
Torsten Grote 2024-08-21 14:36:26 -03:00 committed by GitHub
commit ebb662add7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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)
}
}