diff options
Diffstat (limited to 'storage')
-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")); } |