Commit 3b3836ac authored by Adrien Maglo's avatar Adrien Maglo

Audio service: fix appending to the playlist when the it is empty

parent 8527cac4
......@@ -1145,6 +1145,9 @@ public class AudioService extends Service {
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);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment