[Android] Add uuid meta for external device adding to ML

Geoffrey Métais git at videolan.org
Thu Apr 6 11:59:23 CEST 2017


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Apr  6 10:13:27 2017 +0200| [ce83f5f75f714bb28e1c1e18187fbd499d33293e] | committer: Geoffrey Métais

Add uuid meta for external device adding to ML

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

 .../src/org/videolan/vlc/gui/dialogs/ExternalStorageDialog.java      | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

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 f7b5f7f..12781ef 100644
--- a/vlc-android/src/org/videolan/vlc/gui/dialogs/ExternalStorageDialog.java
+++ b/vlc-android/src/org/videolan/vlc/gui/dialogs/ExternalStorageDialog.java
@@ -30,8 +30,9 @@ public class ExternalStorageDialog extends AppCompatDialogFragment {
                 .setMessage(message)
                 .setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() {
                     public void onClick(DialogInterface dialog, int id) {
-                        Intent serviceInent = new Intent(MediaParsingService.ACTION_DISCOVER_DEVICE, null, getActivity(), MediaParsingService.class);
-                        serviceInent.putExtra(MediaParsingService.EXTRA_PATH, path);
+                        Intent serviceInent = new Intent(MediaParsingService.ACTION_DISCOVER_DEVICE, null, getActivity(), MediaParsingService.class)
+                            .putExtra(MediaParsingService.EXTRA_PATH, path)
+                            .putExtra(MediaParsingService.EXTRA_UUID, name);
                         if (getActivity() != null) {
                             getActivity().startService(serviceInent);
                             getActivity().finish();



More information about the Android mailing list