Commit 6af2e40c authored by Edward Wang's avatar Edward Wang Committed by Jean-Baptiste Kempf
Browse files

AudioService: Create media from the media list

Don't recreate it from scratch.
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <>
parent f3ae5e9e
......@@ -664,7 +664,7 @@ public class AudioService extends Service {
if(realPlaylist) {
for(int i = 0; i < mediaPathList.size(); i++)
mMediaList.add(new Media(mediaPathList.get(i), false));
mMediaList.add(new Media(mediaPathList.get(i), i));
} else {
DatabaseManager db = DatabaseManager.getInstance(AudioService.this);
for (int i = 0; i < mediaPathList.size(); i++) {
Supports Markdown
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