diff options
author | ByteHamster <ByteHamster@users.noreply.github.com> | 2023-02-28 20:42:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-28 20:42:46 +0100 |
commit | 5e75c968ad146c6969db98d53be126c7bb74d5e3 (patch) | |
tree | c1b08dbf3ec9ac4be2c569868aa24824b5d60eb7 /storage/preferences | |
parent | ebcb5e2a7c83c16560b0b9851dda01b2d7717d16 (diff) | |
download | AntennaPod-5e75c968ad146c6969db98d53be126c7bb74d5e3.zip |
Re-add setting to open drawer when pressing back (#6355)
Diffstat (limited to 'storage/preferences')
-rw-r--r-- | storage/preferences/src/main/java/de/danoeh/antennapod/storage/preferences/UserPreferences.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/storage/preferences/src/main/java/de/danoeh/antennapod/storage/preferences/UserPreferences.java b/storage/preferences/src/main/java/de/danoeh/antennapod/storage/preferences/UserPreferences.java index 895d0ab6f..4d2e7394f 100644 --- a/storage/preferences/src/main/java/de/danoeh/antennapod/storage/preferences/UserPreferences.java +++ b/storage/preferences/src/main/java/de/danoeh/antennapod/storage/preferences/UserPreferences.java @@ -63,6 +63,7 @@ public class UserPreferences { public static final String PREF_DEFAULT_PAGE = "prefDefaultPage"; public static final String PREF_FILTER_FEED = "prefSubscriptionsFilter"; public static final String PREF_SUBSCRIPTION_TITLE = "prefSubscriptionTitle"; + public static final String PREF_BACK_OPENS_DRAWER = "prefBackButtonOpensDrawer"; public static final String PREF_QUEUE_KEEP_SORTED = "prefQueueKeepSorted"; public static final String PREF_QUEUE_KEEP_SORTED_ORDER = "prefQueueKeepSortedOrder"; @@ -869,6 +870,10 @@ public class UserPreferences { prefs.edit().putString(PREF_DEFAULT_PAGE, defaultPage).apply(); } + public static boolean backButtonOpensDrawer() { + return prefs.getBoolean(PREF_BACK_OPENS_DRAWER, false); + } + public static boolean timeRespectsSpeed() { return prefs.getBoolean(PREF_TIME_RESPECTS_SPEED, false); } |