From 3397fdbd87fda34af0a8087ea96c28f0b367c4bf Mon Sep 17 00:00:00 2001 From: Torsten Grote Date: Fri, 16 Aug 2024 09:45:46 -0300 Subject: [PATCH] Fix app selection when restoring after SUW --- .../com/stevesoltys/seedvault/restore/AppSelectionManager.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/stevesoltys/seedvault/restore/AppSelectionManager.kt b/app/src/main/java/com/stevesoltys/seedvault/restore/AppSelectionManager.kt index 993837d7..a60c76b6 100644 --- a/app/src/main/java/com/stevesoltys/seedvault/restore/AppSelectionManager.kt +++ b/app/src/main/java/com/stevesoltys/seedvault/restore/AppSelectionManager.kt @@ -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) } }