Skip to content
Snippets Groups Projects
Commit ad6f2518 authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Do not update in-memory 'seen' state

This prevented the DiffUtil to see the state update from medialibrary
parent 2424b74a
No related branches found
No related tags found
No related merge requests found
......@@ -415,7 +415,7 @@ class PlaylistManager(val service: PlaybackService) : MediaWrapperList.EventList
if (progress > 0.95f || length - time < 10000) {
//increase seen counter if more than 95% of the media have been seen
//and reset progress to 0
launch(Dispatchers.IO) { media.setLongMeta(MediaWrapper.META_SEEN, ++media.seen) }
launch(Dispatchers.IO) { media.setLongMeta(MediaWrapper.META_SEEN, media.seen+1) }
progress = 0f
}
media.time = if (progress == 0f) 0L else time
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment