From dcff70aa5b72705c144769cab7cfb3423ad865a6 Mon Sep 17 00:00:00 2001 From: CnC-Robert Date: Mon, 31 Jul 2023 13:24:49 +0200 Subject: [PATCH] fix: don't store app list in parcel --- .../java/app/revanced/manager/ui/screen/AppSelectorScreen.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/app/revanced/manager/ui/screen/AppSelectorScreen.kt b/app/src/main/java/app/revanced/manager/ui/screen/AppSelectorScreen.kt index a46534a6..14d5d08d 100644 --- a/app/src/main/java/app/revanced/manager/ui/screen/AppSelectorScreen.kt +++ b/app/src/main/java/app/revanced/manager/ui/screen/AppSelectorScreen.kt @@ -15,6 +15,7 @@ import androidx.compose.material3.* import androidx.compose.runtime.Composable import androidx.compose.runtime.getValue import androidx.compose.runtime.mutableStateOf +import androidx.compose.runtime.remember import androidx.compose.runtime.saveable.rememberSaveable import androidx.compose.runtime.setValue import androidx.compose.ui.Alignment @@ -56,7 +57,7 @@ fun AppSelectorScreen( var search by rememberSaveable { mutableStateOf(false) } val appList by vm.appList.collectAsStateWithLifecycle(initialValue = emptyList()) - val filteredAppList = rememberSaveable(appList, filterText) { + val filteredAppList = remember(appList, filterText) { appList.filter { app -> (vm.loadLabel(app.packageInfo)).contains( filterText,