From aeabc7c4ef8220066b5f513dac7635a87a9cfa7d Mon Sep 17 00:00:00 2001 From: Niffler Date: Sat, 24 Oct 2020 19:45:00 +0200 Subject: Edit streaming confirmation dialog labels --- .../java/de/danoeh/antennapod/dialog/StreamingConfirmationDialog.java | 2 +- .../de/danoeh/antennapod/core/service/playback/PlaybackService.java | 2 +- core/src/main/res/values/strings.xml | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/de/danoeh/antennapod/dialog/StreamingConfirmationDialog.java b/app/src/main/java/de/danoeh/antennapod/dialog/StreamingConfirmationDialog.java index 46095604c..8e5ceece2 100644 --- a/app/src/main/java/de/danoeh/antennapod/dialog/StreamingConfirmationDialog.java +++ b/app/src/main/java/de/danoeh/antennapod/dialog/StreamingConfirmationDialog.java @@ -20,7 +20,7 @@ public class StreamingConfirmationDialog { new AlertDialog.Builder(context) .setTitle(R.string.stream_label) .setMessage(R.string.confirm_mobile_streaming_notification_message) - .setPositiveButton(R.string.stream_label, (dialog, which) -> stream()) + .setPositiveButton(R.string.confirm_mobile_streaming_button_once, (dialog, which) -> stream()) .setNegativeButton(R.string.confirm_mobile_streaming_button_always, (dialog, which) -> { UserPreferences.setAllowMobileStreaming(true); stream(); diff --git a/core/src/main/java/de/danoeh/antennapod/core/service/playback/PlaybackService.java b/core/src/main/java/de/danoeh/antennapod/core/service/playback/PlaybackService.java index 8677ea030..92f395d0d 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/service/playback/PlaybackService.java +++ b/core/src/main/java/de/danoeh/antennapod/core/service/playback/PlaybackService.java @@ -580,7 +580,7 @@ public class PlaybackService extends MediaBrowserServiceCompat { .setPriority(NotificationCompat.PRIORITY_DEFAULT) .setContentIntent(pendingIntentAllowThisTime) .addAction(R.drawable.ic_stream_white, - getString(R.string.stream_label), + getString(R.string.confirm_mobile_streaming_button_once), pendingIntentAllowThisTime) .addAction(R.drawable.ic_stream_white, getString(R.string.confirm_mobile_streaming_button_always), diff --git a/core/src/main/res/values/strings.xml b/core/src/main/res/values/strings.xml index 7f3c40e75..15f114c42 100644 --- a/core/src/main/res/values/strings.xml +++ b/core/src/main/res/values/strings.xml @@ -268,7 +268,8 @@ Downloading over mobile data connection is disabled in the settings.\n\nDo you want to allow downloading temporarily?\n\nYour choice will be remembered for 10 minutes. Confirm Mobile streaming Streaming over mobile data connection is disabled in the settings. Tap to stream anyway. - Always allow + Always + Once Enqueue Allow temporarily -- cgit v1.2.3