toggle option to setting

This commit is contained in:
Finnley Somdahl 2023-11-21 04:13:05 -06:00
parent 594fa4daa9
commit 6d05a42168

View file

@ -401,7 +401,8 @@ OS Version: $CODENAME $RELEASE ($SDK_INT)
(binding.settingsLogo.drawable as Animatable).start() (binding.settingsLogo.drawable as Animatable).start()
if (cursedCounter % 7 == 0){ if (cursedCounter % 7 == 0){
snackString("youwu have been cuwsed :pwayge:") snackString("youwu have been cuwsed :pwayge:")
getSharedPreferences("Dantotsu", Context.MODE_PRIVATE).edit().putBoolean("use_cursed_lang", true).apply() getSharedPreferences("Dantotsu", Context.MODE_PRIVATE).edit().putBoolean("use_cursed_lang",
getSharedPreferences("Dantotsu", Context.MODE_PRIVATE).getBoolean("use_cursed_lang", false).not()).apply()
} else{ } else{
snackString(array[(Math.random() * array.size).toInt()], this) snackString(array[(Math.random() * array.size).toInt()], this)
} }