manager: Add key to LazyColumn's items to prevent incorrect allow sta… (#255)
This commit is contained in:
@@ -100,7 +100,7 @@ fun SuperUserScreen() {
|
|||||||
.fillMaxSize()
|
.fillMaxSize()
|
||||||
) {
|
) {
|
||||||
LazyColumn {
|
LazyColumn {
|
||||||
items(viewModel.appList) { app ->
|
items(viewModel.appList, key = { it.packageName }) { app ->
|
||||||
var isChecked by rememberSaveable(app) { mutableStateOf(app.onAllowList) }
|
var isChecked by rememberSaveable(app) { mutableStateOf(app.onAllowList) }
|
||||||
AppItem(app, isChecked) { checked ->
|
AppItem(app, isChecked) { checked ->
|
||||||
val success = Natives.allowRoot(app.uid, checked)
|
val success = Natives.allowRoot(app.uid, checked)
|
||||||
|
|||||||
Reference in New Issue
Block a user