Commit ae9bc06d authored by Sébastien Toque's avatar Sébastien Toque

Create media on the fly if not exists in DB (in append)

parent 10a3d98e
...@@ -700,6 +700,10 @@ public class AudioService extends Service { ...@@ -700,6 +700,10 @@ public class AudioService extends Service {
for (int i = 0; i < mediaPathList.size(); i++) { for (int i = 0; i < mediaPathList.size(); i++) {
String path = mediaPathList.get(i); String path = mediaPathList.get(i);
Media media = db.getMedia(AudioService.this, path); Media media = db.getMedia(AudioService.this, path);
if(media == null) {
Log.v(TAG, "Creating on-the-fly Media object for " + path);
media = new Media(path, false);
}
mMediaList.add(media); mMediaList.add(media);
} }
} }
......
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