[Android] Always add subtitles to current playback

Geoffrey Métais git at videolan.org
Wed May 10 10:51:17 CEST 2017


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed May 10 10:50:13 2017 +0200| [8720de3b645d17dfd8cb4ce8a27f675234a5b1b5] | committer: Geoffrey Métais

Always add subtitles to current playback

Close #265

> https://code.videolan.org/videolan/vlc-android/commit/8720de3b645d17dfd8cb4ce8a27f675234a5b1b5
---

 .../src/org/videolan/vlc/gui/video/VideoPlayerActivity.java        | 7 +++----
 1 file changed, 3 insertions(+), 4 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 9b00089..7b05f46 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -3208,11 +3208,10 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
             // Add any selected subtitle file from the file picker
             if (prefsList.size() > 0) {
                 for (String file : prefsList) {
-                    if (!mSubtitleSelectedFiles.contains(file)) {
+                    if (!mSubtitleSelectedFiles.contains(file))
                         mSubtitleSelectedFiles.add(file);
-                        Log.i(TAG, "Adding user-selected subtitle " + file);
-                        mService.addSubtitleTrack(file, true);
-                    }
+                    Log.i(TAG, "Adding user-selected subtitle " + file);
+                    mService.addSubtitleTrack(file, true);
                 }
             }
             mSubtitlesGetTask = null;



More information about the Android mailing list