[Android] Fix logic fail in video playback restoration
Geoffrey Métais
git at videolan.org
Thu Feb 15 14:51:39 CET 2018
vlc-android | branch: 3.0.x | Geoffrey Métais <geoffrey.metais at gmail.com> | Thu Feb 15 14:51:00 2018 +0100| [5fce552a8a934ce97a3e015948a1d61a6804b529] | committer: Geoffrey Métais
Fix logic fail in video playback restoration
(cherry picked from commit 04b12baa26c4f550ab3fc6c1532c239daf324ca2)
> https://code.videolan.org/videolan/vlc-android/commit/5fce552a8a934ce97a3e015948a1d61a6804b529
---
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