[Android] Allow item_title as an External Intent

Jean-Baptiste Kempf git at videolan.org
Thu Jul 30 15:49:04 CEST 2015


vlc-ports/android | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu Jul 30 15:48:04 2015 +0200| [92ee31397d32a6d3d402f4b9e3fb9626c5c18d5b] | committer: Jean-Baptiste Kempf

Allow item_title as an External Intent

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=92ee31397d32a6d3d402f4b9e3fb9626c5c18d5b
---

 .../src/org/videolan/vlc/gui/video/VideoPlayerActivity.java        |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
index f1d535c..ef3b609 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -2541,13 +2541,15 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
         /* Started from VideoListActivity */
         else if(TextUtils.equals(action, PLAY_FROM_VIDEOGRID) && extras != null) {
             mUri = extras.getParcelable(PLAY_EXTRA_ITEM_LOCATION);
-            itemTitle = extras.getString(PLAY_EXTRA_ITEM_TITLE);
             fromStart = extras.getBoolean(PLAY_EXTRA_FROM_START);
             mAskResume &= !fromStart;
             openedPosition = extras.getInt(PLAY_EXTRA_OPENED_POSITION, -1);
         }
+
         if (intent.hasExtra(PLAY_EXTRA_SUBTITLES_LOCATION))
             mSubtitleSelectedFiles.add(extras.getString(PLAY_EXTRA_SUBTITLES_LOCATION));
+        if (intent.hasExtra(PLAY_EXTRA_ITEM_TITLE))
+            itemTitle = extras.getString(PLAY_EXTRA_ITEM_TITLE);
 
         if (openedPosition != -1) {
             // Provided externally from AudioService



More information about the Android mailing list