Skip to content

Commit

Permalink
manager: Modules can be enabled/disabled only by tapping switch toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
changhuapeng authored and backslashxx committed Dec 15, 2024
1 parent 71fb987 commit 7ad8d3c
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions manager/app/src/main/java/me/weishu/kernelsu/ui/screen/Module.kt
Original file line number Diff line number Diff line change
Expand Up @@ -479,15 +479,8 @@ fun ModuleItem(
onValueChange = { onClick(module) }
)
} else {
toggleable(
value = isChecked,
interactionSource = interactionSource,
role = Role.Switch,
indication = indication,
onValueChange = onCheckChanged,
enabled = !module.update
)
}
this
}
}
.padding(22.dp, 18.dp, 22.dp, 12.dp)
) {
Expand Down

0 comments on commit 7ad8d3c

Please sign in to comment.