[Android] Fix progress saving for videos
Nicolas Pomepuy
git at videolan.org
Mon Dec 7 13:54:37 CET 2020
vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Mon Dec 7 12:58:14 2020 +0100| [148d3e54c89e4bb71920e70bcc817797ffa78654] | committer: Nicolas Pomepuy
Fix progress saving for videos
> https://code.videolan.org/videolan/vlc-android/commit/148d3e54c89e4bb71920e70bcc817797ffa78654
---
application/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt | 2 ++
1 file changed, 2 insertions(+)
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 052a04f92..d209114ea 100644
--- a/application/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
+++ b/application/vlc-android/src/org/videolan/vlc/media/PlaylistManager.kt
@@ -455,8 +455,10 @@ class PlaylistManager(val service: PlaybackService) : MediaWrapperList.EventList
media.setLongMeta(MediaWrapper.META_PROGRESS, media.time)
//todo verify that this info is persisted in DB
if (media.length <= 0 && length > 0) media.length = length
+ medialibrary.setProgress(media.id, progress)
}
media.setStringMeta(MediaWrapper.META_SPEED, rate.toString())
+
}
}
More information about the Android
mailing list