diff --git a/manager/app/src/main/java/com/rifsxd/ksunext/ui/screen/Settings.kt b/manager/app/src/main/java/com/rifsxd/ksunext/ui/screen/Settings.kt index 808f0ef4..a665a976 100644 --- a/manager/app/src/main/java/com/rifsxd/ksunext/ui/screen/Settings.kt +++ b/manager/app/src/main/java/com/rifsxd/ksunext/ui/screen/Settings.kt @@ -154,10 +154,17 @@ fun SettingScreen(navigator: DestinationsNavigator) { ) } + val prefs = context.getSharedPreferences("settings", Context.MODE_PRIVATE) + var umountChecked by rememberSaveable { mutableStateOf(false) } if (ksuVersion != null) { + + LaunchedEffect(Unit) { + umountChecked = Natives.isDefaultUmountModules() + } + SwitchItem( icon = Icons.Filled.RemoveModerator, title = stringResource(id = R.string.settings_umount_modules_default), @@ -170,8 +177,6 @@ fun SettingScreen(navigator: DestinationsNavigator) { } } - val prefs = context.getSharedPreferences("settings", Context.MODE_PRIVATE) - val suSFS = getSuSFS() val isSUS_SU = getSuSFSFeatures() if (suSFS == "Supported") {