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

Alexandre Perraud git at videolan.org
Wed Aug 30 16:51:52 CEST 2017


vlc-android | branch: master | Alexandre Perraud <4leyx4ndre at gmail.com> | Wed Aug 30 14:16:11 2017 +0200| [d087dac27bf6886c9e9657fa56f58f0ffd544e63] | committer: Alexandre Perraud

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

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

 vlc-android/src/org/videolan/vlc/PlaybackService.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/PlaybackService.java b/vlc-android/src/org/videolan/vlc/PlaybackService.java
index 4775750ac..381c540dc 100644
--- a/vlc-android/src/org/videolan/vlc/PlaybackService.java
+++ b/vlc-android/src/org/videolan/vlc/PlaybackService.java
@@ -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);



More information about the Android mailing list