[Android] PlaybackService: determine the prev and next indices before updating the player interfaces

Adrien Maglo git at videolan.org
Wed Sep 23 22:23:42 CEST 2015


vlc-ports/android | branch: master | Adrien Maglo <magsoft at videolan.org> | Wed Sep 23 22:23:21 2015 +0200| [c36b2191cec9015a035810d0622477221f5a9f74] | committer: Adrien Maglo

PlaybackService: determine the prev and next indices before updating the player interfaces

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=c36b2191cec9015a035810d0622477221f5a9f74
---

 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 e48796e..3c3b4b3 100644
--- a/vlc-android/src/org/videolan/vlc/PlaybackService.java
+++ b/vlc-android/src/org/videolan/vlc/PlaybackService.java
@@ -1127,8 +1127,8 @@ public class PlaybackService extends Service implements IVLCVout.Callback {
 
     private void onMediaListChanged() {
         saveMediaList();
-        executeUpdate();
         determinePrevAndNextIndices();
+        executeUpdate();
     }
 
     @MainThread



More information about the Android mailing list