diff options
author | ByteHamster <ByteHamster@users.noreply.github.com> | 2022-03-22 19:23:08 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-22 19:23:08 +0100 |
commit | 3d54aa706448d82e8a97ab65afb5691a2540d472 (patch) | |
tree | 27100593f3a1aa8eca1f11a072d24e7da8e68703 /core/src/main | |
parent | b8248656fe151a76f79d14477d610319bf1933ad (diff) | |
parent | 5cf6051d8817f90072ca631c84b84e71e945a029 (diff) | |
download | AntennaPod-3d54aa706448d82e8a97ab65afb5691a2540d472.zip |
Merge pull request #5791 from ByteHamster/refresh-always
Add button to always refresh over mobile data
Diffstat (limited to 'core/src/main')
-rw-r--r-- | core/src/main/java/de/danoeh/antennapod/core/util/download/AutoUpdateManager.java | 8 | ||||
-rw-r--r-- | core/src/main/res/values/strings.xml | 2 |
2 files changed, 7 insertions, 3 deletions
diff --git a/core/src/main/java/de/danoeh/antennapod/core/util/download/AutoUpdateManager.java b/core/src/main/java/de/danoeh/antennapod/core/util/download/AutoUpdateManager.java index dbad1f63e..674082a13 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/util/download/AutoUpdateManager.java +++ b/core/src/main/java/de/danoeh/antennapod/core/util/download/AutoUpdateManager.java @@ -123,7 +123,7 @@ public class AutoUpdateManager { Log.d(TAG, "Run auto update immediately in background."); if (!NetworkUtils.networkAvailable()) { Log.d(TAG, "Ignoring: No network connection."); - } else if (NetworkUtils.isEpisodeDownloadAllowed()) { + } else if (NetworkUtils.isFeedRefreshAllowed()) { startRefreshAllFeeds(context); } else { confirmMobileAllFeedsRefresh(context); @@ -134,8 +134,12 @@ public class AutoUpdateManager { AlertDialog.Builder builder = new AlertDialog.Builder(context) .setTitle(R.string.feed_refresh_title) .setMessage(R.string.confirm_mobile_feed_refresh_dialog_message) - .setPositiveButton(R.string.yes, + .setPositiveButton(R.string.confirm_mobile_streaming_button_once, (dialog, which) -> startRefreshAllFeeds(context)) + .setNeutralButton(R.string.confirm_mobile_streaming_button_always, (dialog, which) -> { + UserPreferences.setAllowMobileFeedRefresh(true); + startRefreshAllFeeds(context); + }) .setNegativeButton(R.string.no, null); builder.show(); } diff --git a/core/src/main/res/values/strings.xml b/core/src/main/res/values/strings.xml index 1196c0eee..d9ed1262b 100644 --- a/core/src/main/res/values/strings.xml +++ b/core/src/main/res/values/strings.xml @@ -188,7 +188,7 @@ </plurals> <string name="edit_tags">Edit tags</string> <string name="rename_tag_label">Rename tag</string> - <string name="confirm_mobile_feed_refresh_dialog_message">Downloading episodes over mobile data connection is disabled in the settings.\n\nDo you still want to refresh all podcasts over mobile data?</string> + <string name="confirm_mobile_feed_refresh_dialog_message">Refreshing podcasts over mobile data connection is disabled in the settings.\n\nDo you want to refresh anyway?</string> <!-- actions on feeditems --> <string name="download_label">Download</string> |