summaryrefslogtreecommitdiff
path: root/storage/preferences
diff options
context:
space:
mode:
authorByteHamster <ByteHamster@users.noreply.github.com>2023-02-28 20:42:46 +0100
committerGitHub <noreply@github.com>2023-02-28 20:42:46 +0100
commit5e75c968ad146c6969db98d53be126c7bb74d5e3 (patch)
treec1b08dbf3ec9ac4be2c569868aa24824b5d60eb7 /storage/preferences
parentebcb5e2a7c83c16560b0b9851dda01b2d7717d16 (diff)
downloadAntennaPod-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.java5
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);
}