Browse Source

Disable updates badge by default

arkon 3 năm trước cách đây
mục cha
commit
7ce0110158

+ 1 - 1
app/src/main/java/eu/kanade/tachiyomi/data/preference/PreferencesHelper.kt

@@ -238,7 +238,7 @@ class PreferencesHelper(val context: Context) {
 
     fun libraryUpdateRestriction() = flowPrefs.getStringSet(Keys.libraryUpdateRestriction, setOf(ONLY_ON_WIFI))
 
-    fun showUpdatesNavBadge() = flowPrefs.getBoolean(Keys.showUpdatesNavBadge, true)
+    fun showUpdatesNavBadge() = flowPrefs.getBoolean(Keys.showUpdatesNavBadge, false)
     fun unreadUpdatesCount() = flowPrefs.getInt("library_unread_updates_count", 0)
 
     fun libraryUpdateCategories() = flowPrefs.getStringSet(Keys.libraryUpdateCategories, emptySet())

+ 1 - 1
app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsGeneralController.kt

@@ -35,7 +35,7 @@ class SettingsGeneralController : SettingsController() {
         switchPreference {
             key = Keys.showUpdatesNavBadge
             titleRes = R.string.pref_library_update_show_tab_badge
-            defaultValue = true
+            defaultValue = false
         }
         switchPreference {
             key = Keys.confirmExit