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 /core/src | |
parent | 658c47f7a7219dfdc058fe691fda72aa77521603 (diff) | |
download | AntennaPod-6d72d7cebf351fb172338f780f91c34f1409085e.zip |
Add mobile sync setting (#6349)
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/main/java/de/danoeh/antennapod/core/sync/SyncService.java | 2 | ||||
-rw-r--r-- | core/src/main/res/values/arrays.xml | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/core/src/main/java/de/danoeh/antennapod/core/sync/SyncService.java b/core/src/main/java/de/danoeh/antennapod/core/sync/SyncService.java index c4a9ec581..6e2658c1c 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/sync/SyncService.java +++ b/core/src/main/java/de/danoeh/antennapod/core/sync/SyncService.java @@ -325,7 +325,7 @@ public class SyncService extends Worker { private static OneTimeWorkRequest.Builder getWorkRequest() { Constraints.Builder constraints = new Constraints.Builder(); - if (UserPreferences.isAllowMobileFeedRefresh()) { + if (UserPreferences.isAllowMobileSync()) { constraints.setRequiredNetworkType(NetworkType.CONNECTED); } else { constraints.setRequiredNetworkType(NetworkType.UNMETERED); diff --git a/core/src/main/res/values/arrays.xml b/core/src/main/res/values/arrays.xml index b8b9d3d6d..9d8065b86 100644 --- a/core/src/main/res/values/arrays.xml +++ b/core/src/main/res/values/arrays.xml @@ -93,6 +93,7 @@ <item>@string/pref_mobileUpdate_auto_download</item> <item>@string/pref_mobileUpdate_streaming</item> <item>@string/pref_mobileUpdate_images</item> + <item>@string/synchronization_pref</item> </string-array> <string-array name="mobile_update_values"> @@ -101,10 +102,12 @@ <item>auto_download</item> <item>streaming</item> <item>images</item> + <item>sync</item> </string-array> <string-array name="mobile_update_default_value"> <item>images</item> + <item>sync</item> </string-array> <string-array name="episode_cleanup_entries"> |