Revert "manager: manager: disable user scroll when refreshing"

This reverts commit d86b524558.
This commit is contained in:
tiann
2023-04-19 21:16:23 +08:00
parent d98e324618
commit e228197906
2 changed files with 1 additions and 2 deletions

View File

@@ -191,7 +191,6 @@ private fun ModuleList(viewModel: ModuleViewModel, modifier: Modifier = Modifier
+ 16.dp + 56.dp /* Scaffold Fab Spacing + Fab container height */
)
},
userScrollEnabled = !viewModel.isRefreshing
) {
val isEmpty = viewModel.moduleList.isEmpty()
if (isEmpty) {

View File

@@ -107,7 +107,7 @@ fun SuperUserScreen() {
) {
val failMessage = stringResource(R.string.superuser_failed_to_grant_root)
LazyColumn(Modifier.fillMaxSize(), userScrollEnabled = !viewModel.isRefreshing) {
LazyColumn(Modifier.fillMaxSize()) {
items(viewModel.appList, key = { it.packageName + it.uid }) { app ->
var isChecked by rememberSaveable(app) { mutableStateOf(app.onAllowList) }
val dialogHost = LocalDialogHost.current