[Android] VideoPlayer: auto select subtitles chosen/downloaded by the user

Thomas Guillem git at videolan.org
Tue Jun 7 18:27:46 CEST 2016


vlc-android | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Jun  7 18:24:44 2016 +0200| [7dd137227d06a2ce9f8f3718933b11ad46da61c7] | committer: Thomas Guillem

VideoPlayer: auto select subtitles chosen/downloaded by the user

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

 vlc-android/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 0fcaefd..bbe082c 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -939,7 +939,7 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
         if(data.getData() == null)
             Log.d(TAG, "Subtitle selection dialog was cancelled");
         else {
-            mService.addSubtitleTrack(data.getData());
+            mService.addSubtitleTrack(data.getData(), true);
             VLCApplication.runBackground(new Runnable() {
                 @Override
                 public void run() {
@@ -3051,7 +3051,7 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
                         public void run() {
                             for(String file : mSubtitleSelectedFiles) {
                                 Log.i(TAG, "Adding user-selected subtitle " + file);
-                                mService.addSubtitleTrack(file);
+                                mService.addSubtitleTrack(file, true);
                             }
                         }
                     });



More information about the Android mailing list