Commit 35750a55 authored by Geoffrey Métais's avatar Geoffrey Métais

Save media meta only if we change media

parent 8e99ace4
......@@ -669,9 +669,11 @@ class PlaylistManager(val service: PlaybackService) : MediaWrapperList.EventList
}
MediaPlayer.Event.Paused -> medialibrary.resumeBackgroundOperations()
MediaPlayer.Event.EndReached -> {
saveMediaMeta()
if (isBenchmark) player.setPreviousStats()
if (nextIndex == -1) savePosition(true)
if (currentIndex != nextIndex) {
saveMediaMeta()
if (isBenchmark) player.setPreviousStats()
if (nextIndex == -1) savePosition(true)
}
next()
}
MediaPlayer.Event.EncounteredError -> {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment