Compare commits
1 commit
Author | SHA1 | Date | |
---|---|---|---|
|
4c70fb6624 |
0
.idea/deploymentTargetDropDown.xml
Normal file → Executable file
0
.idea/deploymentTargetDropDown.xml
Normal file → Executable file
|
@ -13,6 +13,9 @@ class FlagSecure(private val context: Context) : SharedPreferences.OnSharedPrefe
|
|||
}
|
||||
|
||||
fun initFlagSecure() {
|
||||
if (!sharedPreferences.contains("switch_preference_2")) {
|
||||
sharedPreferences.edit().putBoolean("switch_preference_2", true).apply()
|
||||
}
|
||||
val isFlagSecureEnabled = sharedPreferences.getBoolean("switch_preference_2", false)
|
||||
applyFlagSecure(isFlagSecureEnabled)
|
||||
sharedPreferences.registerOnSharedPreferenceChangeListener(this)
|
||||
|
|
Loading…
Reference in a new issue