[Android] Reset resume point if > 90% of media length

Geoffrey Métais git at videolan.org
Wed Jun 14 16:51:54 CEST 2017


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Jun 14 16:50:59 2017 +0200| [10fd6254dd2f982665429090efaefd8445677630] | committer: Geoffrey Métais

Reset resume point if > 90% of media length

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

 vlc-android/src/org/videolan/vlc/PlaybackService.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vlc-android/src/org/videolan/vlc/PlaybackService.java b/vlc-android/src/org/videolan/vlc/PlaybackService.java
index a85636091..aa2134802 100644
--- a/vlc-android/src/org/videolan/vlc/PlaybackService.java
+++ b/vlc-android/src/org/videolan/vlc/PlaybackService.java
@@ -673,7 +673,7 @@ public class PlaybackService extends MediaBrowserServiceCompat implements IVLCVo
             //Save progress
             long time = getTime();
             float progress = time / (float)media.getLength();
-            if (progress > 0.95f)
+            if (progress > 0.90f)
                 progress = 0f;
             media.setTime(progress == 0f ? 0L : time);
             media.setLongMeta(mMedialibrary, MediaWrapper.META_PROGRESS, (long) (progress*100));



More information about the Android mailing list