diff options
author | Matej Drobnič <matej@matejdro.com> | 2023-10-22 16:53:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-22 16:53:41 +0200 |
commit | 346365b8d0aef14e79da921056d9438fe9d2663e (patch) | |
tree | 5fa0082c45493ffa16ffd0a63a3db722fd3206a1 /storage/preferences | |
parent | fa75317bce95bdae152fa1171894d4c025e3921c (diff) | |
download | AntennaPod-346365b8d0aef14e79da921056d9438fe9d2663e.zip |
Delete local feed episodes (#6400)
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 c8ad3eec5..80a58525d 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 @@ -77,6 +77,7 @@ public class UserPreferences { public static final String PREF_SKIP_KEEPS_EPISODE = "prefSkipKeepsEpisode"; private static final String PREF_FAVORITE_KEEPS_EPISODE = "prefFavoriteKeepsEpisode"; private static final String PREF_AUTO_DELETE = "prefAutoDelete"; + private static final String PREF_AUTO_DELETE_LOCAL = "prefAutoDeleteLocal"; public static final String PREF_SMART_MARK_AS_PLAYED_SECS = "prefSmartMarkAsPlayedSecs"; private static final String PREF_PLAYBACK_SPEED_ARRAY = "prefPlaybackSpeedArray"; public static final String PREF_PAUSE_PLAYBACK_FOR_FOCUS_LOSS = "prefPauseForFocusLoss"; @@ -366,6 +367,10 @@ public class UserPreferences { return prefs.getBoolean(PREF_AUTO_DELETE, false); } + public static boolean isAutoDeleteLocal() { + return prefs.getBoolean(PREF_AUTO_DELETE_LOCAL, false); + } + public static int getSmartMarkAsPlayedSecs() { return Integer.parseInt(prefs.getString(PREF_SMART_MARK_AS_PLAYED_SECS, "30")); } |