[Android] VideoPlayer: auto select subtitles chosen/downloaded by the user
Thomas Guillem
git at videolan.org
Thu Jun 9 23:49:40 CEST 2016
vlc-android | branch: 2.0.x | Thomas Guillem <thomas at gllm.fr> | Tue Jun 7 18:24:44 2016 +0200| [7de710701607f264fc131b3ce307c22ae192d111] | committer: Jean-Baptiste Kempf
VideoPlayer: auto select subtitles chosen/downloaded by the user
> https://code.videolan.org/videolan/vlc-android/commit/7de710701607f264fc131b3ce307c22ae192d111
---
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 fa07d54..9d828c1 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() {
@@ -3044,7 +3044,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