[Android] Clear progress on media end reached

Geoffrey Métais git at videolan.org
Wed Nov 30 17:28:50 CET 2016


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Nov 30 15:39:27 2016 +0100| [3a565dbc7132efc3f7f66bd89839fd459b7e06dd] | committer: Geoffrey Métais

Clear progress on media end reached

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

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

diff --git a/vlc-android/src/org/videolan/vlc/PlaybackService.java b/vlc-android/src/org/videolan/vlc/PlaybackService.java
index 812f059..bf4b3e5 100644
--- a/vlc-android/src/org/videolan/vlc/PlaybackService.java
+++ b/vlc-android/src/org/videolan/vlc/PlaybackService.java
@@ -606,6 +606,7 @@ public class PlaybackService extends MediaBrowserServiceCompat implements IVLCVo
                     changeAudioFocus(false);
                     break;
                 case MediaPlayer.Event.EndReached:
+                    mMedialibrary.updateProgress(getCurrentMediaWrapper(), 0L);
                     executeUpdateProgress();
                     determinePrevAndNextIndices(true);
                     next();



More information about the Android mailing list