[Android] Audio service: fix appending to the playlist when the it is empty
Adrien Maglo
git at videolan.org
Fri Jan 17 10:01:50 CET 2014
vlc-ports/android | branch: master | Adrien Maglo <magsoft at videolan.org> | Fri Jan 17 09:58:16 2014 +0100| [3b3836acb9585f8e40ae1f97e12019fd411dbb4e] | committer: Adrien Maglo
Audio service: fix appending to the playlist when the it is empty
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=3b3836acb9585f8e40ae1f97e12019fd411dbb4e
---
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 93c4169..1c41aaf 100644
--- a/vlc-android/src/org/videolan/vlc/AudioService.java
+++ b/vlc-android/src/org/videolan/vlc/AudioService.java
@@ -1145,6 +1145,9 @@ public class AudioService extends Service {
*/
@Override
public void append(List<String> mediaLocationList) throws RemoteException {
+ if (!hasCurrentMedia())
+ load(mediaLocationList, 0, false);
+
MediaDatabase db = MediaDatabase.getInstance(AudioService.this);
for (int i = 0; i < mediaLocationList.size(); i++) {
String location = mediaLocationList.get(i);
More information about the Android
mailing list