[Android] Save medialist changes for last playlist

Geoffrey Métais git at videolan.org
Tue Jan 16 12:21:13 CET 2018


vlc-android | branch: 2.5.x | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Jan 16 11:32:12 2018 +0100| [8c2f9011eaa64122b61d324a3ae95bdf2588ef2e] | committer: Geoffrey Métais

Save medialist changes for last playlist

(cherry picked from commit 2ab31264f5fc4541f82de836cd2e403c928be4e1)

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

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

diff --git a/vlc-android/src/org/videolan/vlc/PlaybackService.java b/vlc-android/src/org/videolan/vlc/PlaybackService.java
index 540100852..1d456f8fb 100644
--- a/vlc-android/src/org/videolan/vlc/PlaybackService.java
+++ b/vlc-android/src/org/videolan/vlc/PlaybackService.java
@@ -828,6 +828,7 @@ public class PlaybackService extends MediaBrowserServiceCompat implements IVLCVo
 
             determinePrevAndNextIndices();
             executeUpdate();
+            saveMediaList();
         }
 
         @Override
@@ -849,6 +850,7 @@ public class PlaybackService extends MediaBrowserServiceCompat implements IVLCVo
                 mCurrentIndex--;
             determinePrevAndNextIndices();
             executeUpdate();
+            saveMediaList();
         }
 
         @Override
@@ -871,6 +873,7 @@ public class PlaybackService extends MediaBrowserServiceCompat implements IVLCVo
 
             determinePrevAndNextIndices();
             executeUpdate();
+            saveMediaList();
         }
     };
 



More information about the Android mailing list