Skip to content

Commit

Permalink
Revert "manager: don't remember state when process died." close #728
Browse files Browse the repository at this point in the history
This reverts commit 12761ee.
  • Loading branch information
tiann committed Jul 7, 2023
1 parent cd952f5 commit d78f240
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import androidx.compose.material.icons.filled.Refresh
import androidx.compose.material.icons.filled.Save
import androidx.compose.material3.*
import androidx.compose.runtime.*
import androidx.compose.runtime.saveable.rememberSaveable
import androidx.compose.ui.Modifier
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.tooling.preview.Preview
Expand All @@ -38,8 +39,8 @@ import java.util.*
@Destination
fun InstallScreen(navigator: DestinationsNavigator, uri: Uri) {

var text by remember { mutableStateOf("") }
var showFloatAction by remember { mutableStateOf(false) }
var text by rememberSaveable { mutableStateOf("") }
var showFloatAction by rememberSaveable { mutableStateOf(false) }

val snackBarHost = LocalSnackbarHost.current
val scope = rememberCoroutineScope()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import androidx.compose.material.pullrefresh.pullRefresh
import androidx.compose.material.pullrefresh.rememberPullRefreshState
import androidx.compose.material3.*
import androidx.compose.runtime.*
import androidx.compose.runtime.saveable.rememberSaveable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.platform.LocalContext
Expand Down Expand Up @@ -201,7 +202,7 @@ private fun ModuleList(
}
} else {
items(viewModel.moduleList) { module ->
var isChecked by remember(module) { mutableStateOf(module.enabled) }
var isChecked by rememberSaveable(module) { mutableStateOf(module.enabled) }
val scope = rememberCoroutineScope()
val updateUrl by produceState(initialValue = "") {
viewModel.checkUpdate(module) { value = it.orEmpty() }
Expand Down

1 comment on commit d78f240

@s1204IT
Copy link
Contributor

@s1204IT s1204IT commented on d78f240 Jul 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tiann
https://github.com/tiann/KernelSU/actions/runs/5492616328

Could you please release it again when this Actions is completed?

Please sign in to comment.