[Android] Subtitles path in Intent Extra for 3rd party apps

Geoffrey Métais git at videolan.org
Wed Jun 17 14:25:18 CEST 2015


vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Jun 17 14:24:17 2015 +0200| [d950a8d6c780e170f98f1722e08e2a522f10df77] | committer: Geoffrey Métais

Subtitles path in Intent Extra for 3rd party apps

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

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

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 c764f30..dac3a45 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -2759,11 +2759,11 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVideoPlay
             mUri = extras.getParcelable(PLAY_EXTRA_ITEM_LOCATION);
             itemTitle = extras.getString(PLAY_EXTRA_ITEM_TITLE);
             fromStart = extras.getBoolean(PLAY_EXTRA_FROM_START);
-            if (intent.hasExtra(PLAY_EXTRA_SUBTITLES_LOCATION))
-                mSubtitleSelectedFiles.add(extras.getString(PLAY_EXTRA_SUBTITLES_LOCATION));
             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 (openedPosition != -1) {
             // Provided externally from AudioService



More information about the Android mailing list