manager: fixed Unresolved reference 'prefs'

This commit is contained in:
Rifat Azad
2024-12-24 00:00:26 +06:00
parent f36924bb49
commit e82c218511

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)