fix: don't store app list in parcel

This commit is contained in:
CnC-Robert 2023-07-31 13:24:49 +02:00
parent c6ebaae738
commit dcff70aa5b
No known key found for this signature in database
GPG Key ID: C58ED617AEA8CB68
1 changed files with 2 additions and 1 deletions

View File

@ -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,