summaryrefslogtreecommitdiff
path: root/storage/preferences
diff options
context:
space:
mode:
authorByteHamster <ByteHamster@users.noreply.github.com>2024-03-18 07:36:37 +0100
committerGitHub <noreply@github.com>2024-03-18 07:36:37 +0100
commit55845c46a1f25fd72de4ffc8ab73368d844375f9 (patch)
tree8ea768ae7eb1b5a317d44b58d0fb97510793a83a /storage/preferences
parentd40b9ef59b422ad6ccf0e31245e9a28757e39fc1 (diff)
downloadAntennaPod-55845c46a1f25fd72de4ffc8ab73368d844375f9.zip
Optional automatic daily database backup (#6994)
Diffstat (limited to 'storage/preferences')
-rw-r--r--storage/preferences/src/main/java/de/danoeh/antennapod/storage/preferences/UserPreferences.java10
1 files changed, 10 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 a42493692..f2baf1242 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
@@ -114,6 +114,7 @@ public class UserPreferences {
// Other
private static final String PREF_DATA_FOLDER = "prefDataFolder";
public static final String PREF_DELETE_REMOVES_FROM_QUEUE = "prefDeleteRemovesFromQueue";
+ private static final String PREF_AUTOMATIC_EXPORT_FOLDER = "prefAutomaticExportFolder";
// Mediaplayer
private static final String PREF_PLAYBACK_SPEED = "prefPlaybackSpeed";
@@ -282,6 +283,15 @@ public class UserPreferences {
prefs.edit().putBoolean(PREF_SHOW_TIME_LEFT, showRemain).apply();
}
+ @Nullable
+ public static String getAutomaticExportFolder() {
+ return prefs.getString(PREF_AUTOMATIC_EXPORT_FOLDER, null);
+ }
+
+ public static void setAutomaticExportFolder(@Nullable String folder) {
+ prefs.edit().putString(PREF_AUTOMATIC_EXPORT_FOLDER, folder).apply();
+ }
+
/**
* Returns notification priority.
*