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