diff options
author | ByteHamster <ByteHamster@users.noreply.github.com> | 2023-02-24 22:06:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-24 22:06:12 +0100 |
commit | 6d72d7cebf351fb172338f780f91c34f1409085e (patch) | |
tree | 2e9496d89ce138b52d4b7756b864a815995e06a3 /storage/preferences | |
parent | 658c47f7a7219dfdc058fe691fda72aa77521603 (diff) | |
download | AntennaPod-6d72d7cebf351fb172338f780f91c34f1409085e.zip |
Add mobile sync setting (#6349)
Diffstat (limited to 'storage/preferences')
-rw-r--r-- | storage/preferences/src/main/java/de/danoeh/antennapod/storage/preferences/UserPreferences.java | 8 |
1 files changed, 8 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 37cfb4f19..09835a528 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 @@ -507,6 +507,10 @@ public class UserPreferences { return isAllowMobileFor("feed_refresh"); } + public static boolean isAllowMobileSync() { + return isAllowMobileFor("sync"); + } + public static boolean isAllowMobileEpisodeDownload() { return isAllowMobileFor("episode_download"); } @@ -556,6 +560,10 @@ public class UserPreferences { setAllowMobileFor("images", allow); } + public static void setAllowMobileSync(boolean allow) { + setAllowMobileFor("sync", allow); + } + public static int getParallelDownloads() { return Integer.parseInt(prefs.getString(PREF_PARALLEL_DOWNLOADS, "4")); } |