mirror of
https://github.com/rebelonion/Dantotsu.git
synced 2026-01-18 21:13:55 +00:00
update SettingsDialogFragment.kt
This commit is contained in:
@@ -76,14 +76,9 @@ class SettingsDialogFragment() : BottomSheetDialogFragment() {
|
||||
Anilist.loginIntent(requireActivity())
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
binding.settingsIncognito.isChecked =
|
||||
context?.getSharedPreferences("Dantotsu", Context.MODE_PRIVATE)
|
||||
?.getBoolean(
|
||||
"incognito",
|
||||
false
|
||||
)
|
||||
currContext()?.getSharedPreferences("Dantotsu", Context.MODE_PRIVATE)
|
||||
?.getBoolean("incognito", false) ?: false
|
||||
|
||||
binding.settingsIncognito.setOnCheckedChangeListener { _, isChecked ->
|
||||
context?.getSharedPreferences("Dantotsu", Context.MODE_PRIVATE)?.edit()
|
||||
|
||||
Reference in New Issue
Block a user