manager: fix native jni calls and minor change to strings

This commit is contained in:
rifsxd
2025-02-23 22:42:30 +06:00
parent 15371bb1d6
commit c1273d35f4
4 changed files with 5 additions and 3 deletions
@@ -179,6 +179,7 @@ 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)) {