From 67b01f6ec802b95732dec999d7dbc35ed9a2f0fa Mon Sep 17 00:00:00 2001 From: ByteHamster Date: Thu, 5 Apr 2018 16:22:45 +0200 Subject: [PATCH] Use generic export message instead of OPML The same message is shown for HTML and OPML. Fixes #2462. Additionally, using string formatting now instead of just "+" --- .../danoeh/antennapod/preferences/PreferenceController.java | 4 ++-- core/src/main/res/values/strings.xml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/de/danoeh/antennapod/preferences/PreferenceController.java b/app/src/main/java/de/danoeh/antennapod/preferences/PreferenceController.java index 0f42dd01a..2877fe521 100644 --- a/app/src/main/java/de/danoeh/antennapod/preferences/PreferenceController.java +++ b/app/src/main/java/de/danoeh/antennapod/preferences/PreferenceController.java @@ -474,8 +474,8 @@ public class PreferenceController implements SharedPreferences.OnSharedPreferenc subscription = observable.subscribeOn(Schedulers.newThread()) .observeOn(AndroidSchedulers.mainThread()) .subscribe(output -> { - alert.setTitle(R.string.opml_export_success_title); - String message = context.getString(R.string.opml_export_success_sum) + output.toString(); + alert.setTitle(R.string.export_success_title); + String message = context.getString(R.string.export_success_sum, output.toString()); alert.setMessage(message); alert.setPositiveButton(R.string.send_label, (dialog, which) -> { Uri fileUri = FileProvider.getUriForFile(context.getApplicationContext(), diff --git a/core/src/main/res/values/strings.xml b/core/src/main/res/values/strings.xml index f0eed3e38..fc176dc1a 100644 --- a/core/src/main/res/values/strings.xml +++ b/core/src/main/res/values/strings.xml @@ -475,8 +475,8 @@ HTML export Exporting… Export error - OPML Export successful. - The .opml file was written to:\u0020 + Export successful + The exported file was written to:\n\n%1$s Access to external storage is required to read the OPML file