diff options
author | Erik Johnson <palehose@gmail.com> | 2022-09-10 05:06:32 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-10 12:06:32 +0200 |
commit | 539d0c928d22a534eff08a35f0df1015c190284c (patch) | |
tree | 47c5f26df52e5616e5a087a11f88d86bf94f6ee6 /app | |
parent | a63948ec6d9f42ce1350c3e3a9a8233b1acbe431 (diff) | |
download | AntennaPod-539d0c928d22a534eff08a35f0df1015c190284c.zip |
Remove "inbox and unplayed" feed counter option (#6033)
Diffstat (limited to 'app')
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/preferences/PreferenceUpgrader.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/preferences/PreferenceUpgrader.java b/app/src/main/java/de/danoeh/antennapod/preferences/PreferenceUpgrader.java index a2c5ca3ff..d2796b5e2 100644 --- a/app/src/main/java/de/danoeh/antennapod/preferences/PreferenceUpgrader.java +++ b/app/src/main/java/de/danoeh/antennapod/preferences/PreferenceUpgrader.java @@ -109,5 +109,13 @@ public class PreferenceUpgrader { if (oldVersion < 2050000) { prefs.edit().putBoolean(UserPreferences.PREF_PAUSE_PLAYBACK_FOR_FOCUS_LOSS, true).apply(); } + if (oldVersion < 2080000) { + // Migrate drawer feed counter setting to reflect removal of + // "unplayed and in inbox" (0), by changing it to "unplayed" (2) + String feedCounterSetting = prefs.getString(UserPreferences.PREF_DRAWER_FEED_COUNTER, "1"); + if (feedCounterSetting.equals("0")) { + prefs.edit().putString(UserPreferences.PREF_DRAWER_FEED_COUNTER, "2").apply(); + } + } } } |