From 6d72d7cebf351fb172338f780f91c34f1409085e Mon Sep 17 00:00:00 2001 From: ByteHamster Date: Fri, 24 Feb 2023 22:06:12 +0100 Subject: Add mobile sync setting (#6349) --- .../de/danoeh/antennapod/storage/preferences/UserPreferences.java | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'storage') 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")); } -- cgit v1.2.3