[Android] Fix resume when history is disabled

Duncan McNamara git at videolan.org
Mon Feb 5 11:03:10 UTC 2024


vlc-android | branch: master | Duncan McNamara <dcn.mcnamara at gmail.com> | Mon Feb  5 11:49:26 2024 +0100| [83822a8db1966f0b53d82f716d975f58f5bef7f7] | committer: Duncan McNamara

Fix resume when history is disabled

Fixes #3028

> https://code.videolan.org/videolan/vlc-android/commit/83822a8db1966f0b53d82f716d975f58f5bef7f7
---

 application/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/application/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt b/application/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
index 8791c7df36..0b31cf7b3d 100644
--- a/application/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
+++ b/application/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
@@ -496,7 +496,7 @@ class PlaylistManager(val service: PlaybackService) : MediaWrapperList.EventList
             if (title > 0) uri = "$uri#$title".toUri()
             val start = if (forceRestart
                 || videoResumeStatus == VideoResumeStatus.NEVER
-                || Settings.getInstance(AppContextProvider.appContext).getBoolean(PLAYBACK_HISTORY, true)) 0L else getStartTime(mw)
+                || !Settings.getInstance(AppContextProvider.appContext).getBoolean(PLAYBACK_HISTORY, true)) 0L else getStartTime(mw)
             if (isVideoPlaying) {
                 if (!forceResume && videoResumeStatus == VideoResumeStatus.ASK && start > 0) {
                     waitForConfirmation.postValue(WaitConfirmation(mw.title, index, flags))



More information about the Android mailing list