[Android] Use specific strings for storage scan dialog

Geoffrey Métais git at videolan.org
Wed Sep 6 10:18:02 CEST 2017


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Sep  6 10:16:54 2017 +0200| [5f4bc7120a36c5c45bd0fcf7e4f460292e1b606b] | committer: Geoffrey Métais

Use specific strings for storage scan dialog

> https://code.videolan.org/videolan/vlc-android/commit/5f4bc7120a36c5c45bd0fcf7e4f460292e1b606b
---

 vlc-android/res/values/strings.xml                                    | 2 ++
 .../src/org/videolan/vlc/gui/dialogs/ExternalStorageDialog.java       | 4 ++--
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/vlc-android/res/values/strings.xml b/vlc-android/res/values/strings.xml
index 06cf5444c..c2fe0c957 100644
--- a/vlc-android/res/values/strings.xml
+++ b/vlc-android/res/values/strings.xml
@@ -545,6 +545,8 @@
     <string name="tv_settings_hint">Long press OK button to check/uncheck directories</string>
     <string name="ml_external_storage_title">New external storage detected</string>
     <string name="ml_external_storage_msg">Do you want VLC to add device %1$s to your medialibrary?</string>
+    <string name="ml_external_storage_accept">Yes</string>
+    <string name="ml_external_storage_decline">No</string>
     <string name="last_added_media">last added</string>
     <string name="no">No</string>
     <string name="loading_medialibrary">Loading Medialibrary...</string>
diff --git a/vlc-android/src/org/videolan/vlc/gui/dialogs/ExternalStorageDialog.java b/vlc-android/src/org/videolan/vlc/gui/dialogs/ExternalStorageDialog.java
index 80f46656f..885a71c13 100644
--- a/vlc-android/src/org/videolan/vlc/gui/dialogs/ExternalStorageDialog.java
+++ b/vlc-android/src/org/videolan/vlc/gui/dialogs/ExternalStorageDialog.java
@@ -34,7 +34,7 @@ public class ExternalStorageDialog extends AppCompatDialogFragment {
         final String message = String.format(VLCApplication.getAppResources().getString(R.string.ml_external_storage_msg), uuid);
         builder.setTitle(R.string.ml_external_storage_title)
                 .setMessage(message)
-                .setPositiveButton(R.string.yes, new DialogInterface.OnClickListener() {
+                .setPositiveButton(R.string.ml_external_storage_accept, new DialogInterface.OnClickListener() {
                     public void onClick(DialogInterface dialog, int id) {
                         Intent serviceInent = new Intent(MediaParsingService.ACTION_DISCOVER_DEVICE, null, getActivity(), MediaParsingService.class)
                             .putExtra(MediaParsingService.EXTRA_PATH, path);
@@ -44,7 +44,7 @@ public class ExternalStorageDialog extends AppCompatDialogFragment {
                         }
                     }
                 })
-                .setNegativeButton(R.string.no, new DialogInterface.OnClickListener() {
+                .setNegativeButton(R.string.ml_external_storage_decline, new DialogInterface.OnClickListener() {
                     public void onClick(DialogInterface dialog, int id) {
                         PreferenceManager.getDefaultSharedPreferences(VLCApplication.getAppContext())
                                 .edit()



More information about the Android mailing list