manager: fixed Unresolved reference 'prefs'

This commit is contained in:
Rifat Azad
2024-12-24 00:00:26 +06:00
parent 08a3a93224
commit b98f0f3618

View File

@@ -157,6 +157,8 @@ fun SettingScreen(navigator: DestinationsNavigator) {
}
}
val prefs = context.getSharedPreferences("settings", Context.MODE_PRIVATE)
val isSUS_SU = getSuSFSFeatures()
if (isSUS_SU == "CONFIG_KSU_SUSFS_SUS_SU") {
var isEnabled by rememberSaveable {
@@ -183,7 +185,6 @@ fun SettingScreen(navigator: DestinationsNavigator) {
}
}
val prefs = context.getSharedPreferences("settings", Context.MODE_PRIVATE)
var checkUpdate by rememberSaveable {
mutableStateOf(
prefs.getBoolean("check_update", true)