Skip to content
Snippets Groups Projects
Commit d087dac2 authored by Alexandre Perraud's avatar Alexandre Perraud
Browse files

Save media progress if less than 95% have been seen instead of 90%

parent 7e190a46
No related branches found
No related tags found
No related merge requests found
......@@ -700,8 +700,8 @@ public class PlaybackService extends MediaBrowserServiceCompat implements IVLCVo
//Save progress
final long time = getTime();
float progress = time / (float)media.getLength();
if (progress > 0.90f) {
//increase seen counter if more than 90% of the media have been seen
if (progress > 0.95f) {
//increase seen counter if more than 95% of the media have been seen
//and reset progress to 0
final long incSeen = media.getSeen() + 1L;
media.setLongMeta(MediaWrapper.META_SEEN, incSeen);
......
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