mirror of
https://github.com/rebelonion/Dantotsu.git
synced 2026-01-26 13:31:02 +00:00
feat: setting to hide red dot
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user