[Android] Fix logic fail in video playback restoration

Geoffrey Métais git at videolan.org
Thu Feb 15 14:51:24 CET 2018


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Feb 15 14:51:00 2018 +0100| [04b12baa26c4f550ab3fc6c1532c239daf324ca2] | committer: Geoffrey Métais

Fix logic fail in video playback restoration

> https://code.videolan.org/videolan/vlc-android/commit/04b12baa26c4f550ab3fc6c1532c239daf324ca2
---

 vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 9e83d9b1f..f4f37de55 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.java
@@ -3076,7 +3076,7 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
 
         MediaWrapper openedMedia = null;
         final boolean resumePlaylist = mService.isValidIndex(positionInPlaylist);
-        final boolean continueplayback = resumePlaylist && isPlaying && positionInPlaylist == mService.getCurrentMediaPosition();
+        final boolean continueplayback = restorePlayback && isPlaying && positionInPlaylist == mService.getCurrentMediaPosition();
         if (resumePlaylist) {
             // Provided externally from AudioService
             Log.d(TAG, "Continuing playback from PlaybackService at index " + positionInPlaylist);



More information about the Android mailing list