diff options
author | ByteHamster <info@bytehamster.com> | 2023-09-11 01:17:00 +0200 |
---|---|---|
committer | ByteHamster <ByteHamster@users.noreply.github.com> | 2023-09-12 19:18:12 +0200 |
commit | 1e7c347cd2dfb68a5f42eefb878c12092659316a (patch) | |
tree | cf703c3fd2cd4f6d54135c67676b191dc452fd1c /app/src/main | |
parent | 087770026f63f83f2edd9aa236a37322ef3c94a4 (diff) | |
download | AntennaPod-1e7c347cd2dfb68a5f42eefb878c12092659316a.zip |
No longer use 'metered' work-around for VPNs
WorkManager doesn't do the workaround either.
So we would launch a download that then never starts.
Diffstat (limited to 'app/src/main')
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/adapter/actionbutton/DownloadActionButton.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/adapter/actionbutton/DownloadActionButton.java b/app/src/main/java/de/danoeh/antennapod/adapter/actionbutton/DownloadActionButton.java index 86a8047a9..4d5b0b6d5 100644 --- a/app/src/main/java/de/danoeh/antennapod/adapter/actionbutton/DownloadActionButton.java +++ b/app/src/main/java/de/danoeh/antennapod/adapter/actionbutton/DownloadActionButton.java @@ -52,12 +52,17 @@ public class DownloadActionButton extends ItemActionButton { } else { MaterialAlertDialogBuilder builder = new MaterialAlertDialogBuilder(context) .setTitle(R.string.confirm_mobile_download_dialog_title) - .setMessage(R.string.confirm_mobile_download_dialog_message) .setPositiveButton(R.string.confirm_mobile_download_dialog_download_later, (d, w) -> DownloadServiceInterface.get().downloadNow(context, item, false)) .setNeutralButton(R.string.confirm_mobile_download_dialog_allow_this_time, (d, w) -> DownloadServiceInterface.get().downloadNow(context, item, true)) .setNegativeButton(R.string.cancel_label, null); + if (NetworkUtils.isNetworkRestricted() && NetworkUtils.isVpnOverWifi()) { + builder.setMessage(R.string.confirm_mobile_download_dialog_message_vpn); + } else { + builder.setMessage(R.string.confirm_mobile_download_dialog_message); + } + builder.show(); } } |