summaryrefslogtreecommitdiff
path: root/storage/preferences/src/main/java
diff options
context:
space:
mode:
authorByteHamster <ByteHamster@users.noreply.github.com>2023-09-12 19:19:28 +0200
committerGitHub <noreply@github.com>2023-09-12 19:19:28 +0200
commit37c29a6372cedd4481a7ca555d6025e860384067 (patch)
tree629fa57bf76b641d6c94c0b4479c2f40efe4fe27 /storage/preferences/src/main/java
parente4df6222c20333f8c7823b938b1171b03b2b20a0 (diff)
downloadAntennaPod-37c29a6372cedd4481a7ca555d6025e860384067.zip
Remove auto-download notification setting (#6625)
Also, add episode notifications to multi select options
Diffstat (limited to 'storage/preferences/src/main/java')
-rw-r--r--storage/preferences/src/main/java/de/danoeh/antennapod/storage/preferences/UserPreferences.java34
1 files changed, 0 insertions, 34 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 f2b122fcc..c8ad3eec5 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
@@ -56,7 +56,6 @@ public class UserPreferences {
private static final String PREF_PERSISTENT_NOTIFICATION = "prefPersistNotify";
public static final String PREF_COMPACT_NOTIFICATION_BUTTONS = "prefCompactNotificationButtons";
private static final String PREF_SHOW_DOWNLOAD_REPORT = "prefShowDownloadReport";
- private static final String PREF_SHOW_AUTO_DOWNLOAD_REPORT = "prefShowAutoDownloadReport";
public static final String PREF_DEFAULT_PAGE = "prefDefaultPage";
public static final String PREF_FILTER_FEED = "prefSubscriptionsFilter";
public static final String PREF_SUBSCRIPTION_TITLE = "prefSubscriptionTitle";
@@ -290,49 +289,16 @@ public class UserPreferences {
}
/**
- * Returns true if download reports are shown
- *
- * @return {@code true} if download reports are shown, {@code false} otherwise
- */
- public static boolean showDownloadReport() {
- if (Build.VERSION.SDK_INT >= 26) {
- return true; // System handles notification preferences
- }
- return prefs.getBoolean(PREF_SHOW_DOWNLOAD_REPORT, true);
- }
-
- /**
* Used for migration of the preference to system notification channels.
*/
public static boolean getShowDownloadReportRaw() {
return prefs.getBoolean(PREF_SHOW_DOWNLOAD_REPORT, true);
}
- public static boolean showAutoDownloadReport() {
- if (Build.VERSION.SDK_INT >= 26) {
- return true; // System handles notification preferences
- }
- return prefs.getBoolean(PREF_SHOW_AUTO_DOWNLOAD_REPORT, false);
- }
-
- /**
- * Used for migration of the preference to system notification channels.
- */
- public static boolean getShowAutoDownloadReportRaw() {
- return prefs.getBoolean(PREF_SHOW_AUTO_DOWNLOAD_REPORT, false);
- }
-
public static boolean enqueueDownloadedEpisodes() {
return prefs.getBoolean(PREF_ENQUEUE_DOWNLOADED, true);
}
- @VisibleForTesting
- public static void setEnqueueDownloadedEpisodes(boolean enqueueDownloadedEpisodes) {
- prefs.edit()
- .putBoolean(PREF_ENQUEUE_DOWNLOADED, enqueueDownloadedEpisodes)
- .apply();
- }
-
public enum EnqueueLocation {
BACK, FRONT, AFTER_CURRENTLY_PLAYING, RANDOM
}