Skip to content
Snippets Groups Projects
Commit 7de71070 authored by Thomas Guillem's avatar Thomas Guillem Committed by Jean-Baptiste Kempf
Browse files

VideoPlayer: auto select subtitles chosen/downloaded by the user

parent 72b094f9
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
}
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment