[Android] Audio service: fix the append function when the playlist is empty

Adrien Maglo git at videolan.org
Fri Jan 17 10:05:56 CET 2014


vlc-ports/android | branch: master | Adrien Maglo <magsoft at videolan.org> | Fri Jan 17 10:05:49 2014 +0100| [a4dbfd5a858266e3214bfa42bdbb08a9a959b091] | committer: Adrien Maglo

Audio service: fix the append function when the playlist is empty

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

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

diff --git a/vlc-android/src/org/videolan/vlc/AudioService.java b/vlc-android/src/org/videolan/vlc/AudioService.java
index 8c0d8db..a1afe2b 100644
--- a/vlc-android/src/org/videolan/vlc/AudioService.java
+++ b/vlc-android/src/org/videolan/vlc/AudioService.java
@@ -1146,7 +1146,10 @@ public class AudioService extends Service {
         @Override
         public void append(List<String> mediaLocationList) throws RemoteException {
             if (!hasCurrentMedia())
+            {
                 load(mediaLocationList, 0, false);
+                return;
+            }
 
             MediaDatabase db = MediaDatabase.getInstance(AudioService.this);
             for (int i = 0; i < mediaLocationList.size(); i++) {



More information about the Android mailing list