mirror of
https://github.com/rebelonion/Dantotsu.git
synced 2026-01-23 13:01:01 +00:00
update SettingsDialogFragment.kt
This commit is contained in:
@@ -83,6 +83,17 @@ class SettingsDialogFragment() : BottomSheetDialogFragment() {
|
||||
context?.getSharedPreferences("Dantotsu", Context.MODE_PRIVATE)?.edit()
|
||||
?.putBoolean("incognito", isChecked)?.apply()
|
||||
}
|
||||
|
||||
binding.settingsIncognito.isChecked =
|
||||
getSharedPreferences("Dantotsu", Context.MODE_PRIVATE).getBoolean(
|
||||
"incognito",
|
||||
false
|
||||
)
|
||||
|
||||
binding.settingsIncognito.setSafeOnClickListener {
|
||||
startActivity(Intent(activity, MainActivity::class.java))
|
||||
dismiss()
|
||||
}
|
||||
|
||||
var incognito = context?.getSharedPreferences("Dantotsu", Context.MODE_PRIVATE)
|
||||
?.getBoolean(
|
||||
|
||||
Reference in New Issue
Block a user