[Android] Save MediaList on every update

Geoffrey Métais git at videolan.org
Mon Dec 29 16:03:32 CET 2014


vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Dec 29 16:01:47 2014 +0100| [dec2319a40396a4c91ff57ff47f0c0cb05e3246d] | committer: Geoffrey Métais

Save MediaList on every update

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

 vlc-android/src/org/videolan/vlc/audio/AudioService.java |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/vlc-android/src/org/videolan/vlc/audio/AudioService.java b/vlc-android/src/org/videolan/vlc/audio/AudioService.java
index 9f2133c..5a2008e 100644
--- a/vlc-android/src/org/videolan/vlc/audio/AudioService.java
+++ b/vlc-android/src/org/videolan/vlc/audio/AudioService.java
@@ -1317,6 +1317,7 @@ public class AudioService extends Service {
         @Override
         public void moveItem(int positionStart, int positionEnd) throws RemoteException {
             mLibVLC.getMediaList().move(positionStart, positionEnd);
+            AudioService.this.saveMediaList();
         }
 
         @Override
@@ -1328,6 +1329,7 @@ public class AudioService extends Service {
         @Override
         public void removeLocation(String location) {
             mLibVLC.getMediaList().remove(location);
+            AudioService.this.saveMediaList();
         }
 
         @Override



More information about the Android mailing list