Commit a4dbfd5a authored by Adrien Maglo's avatar Adrien Maglo

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

parent c5ae7bb2
......@@ -1146,7 +1146,10 @@ 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++) {
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