Skip to content

Commit

Permalink
manager: Allow to re-enable sucompat
Browse files Browse the repository at this point in the history
  • Loading branch information
backslashxx committed Feb 17, 2025
1 parent 49a26c2 commit 7c29b73
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,6 @@ fun SettingScreen(navigator: DestinationsNavigator) {
title = stringResource(id = R.string.settings_disable_su),
summary = stringResource(id = R.string.settings_disable_su_summary),
checked = isSuDisabled,
enabled = !isSuDisabled // we can't re-enable su if it's disabled.
) { checked ->
val shouldEnable = !checked
if (Natives.setSuEnabled(shouldEnable)) {
Expand Down Expand Up @@ -479,4 +478,4 @@ private fun TopBar(
@Composable
private fun SettingsPreview() {
SettingScreen(EmptyDestinationsNavigator)
}
}

0 comments on commit 7c29b73

Please sign in to comment.