feat: setting to hide red dot
This commit is contained in:
parent
0b32636c1b
commit
b30047804a
8 changed files with 41 additions and 8 deletions
|
@ -65,6 +65,10 @@ class UserInterfaceSettingsActivity : AppCompatActivity() {
|
|||
PrefManager.setVal(PrefName.ImmersiveMode, isChecked)
|
||||
restartApp()
|
||||
}
|
||||
binding.uiSettingsHideRedDot.isChecked = !PrefManager.getVal<Boolean>(PrefName.ShowNotificationRedDot)
|
||||
binding.uiSettingsHideRedDot.setOnCheckedChangeListener { _, isChecked ->
|
||||
PrefManager.setVal(PrefName.ShowNotificationRedDot, !isChecked)
|
||||
}
|
||||
binding.uiSettingsBannerAnimation.isChecked = PrefManager.getVal(PrefName.BannerAnimations)
|
||||
binding.uiSettingsBannerAnimation.setOnCheckedChangeListener { _, isChecked ->
|
||||
PrefManager.setVal(PrefName.BannerAnimations, isChecked)
|
||||
|
|
|
@ -82,6 +82,7 @@ enum class PrefName(val data: Pref) { //TODO: Split this into multiple files
|
|||
MangaListSortOrder(Pref(Location.UI, String::class, "score")),
|
||||
CommentSortOrder(Pref(Location.UI, String::class, "newest")),
|
||||
FollowerLayout(Pref(Location.UI, Int::class, 0)),
|
||||
ShowNotificationRedDot(Pref(Location.UI, Boolean::class, true)),
|
||||
|
||||
|
||||
//Player
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue