Commit 1dfea783 authored by Geoffrey Métais's avatar Geoffrey Métais

Add external media to history

parent 9771eadf
......@@ -1908,6 +1908,11 @@ public class PlaybackService extends MediaBrowserServiceCompat implements IVLCVo
MediaWrapper media = mMedialibrary.findMedia(mw);
if (media != null)
id = media.getId();
else {
media = mMedialibrary.addMedia(mw.getUri().toString());
if (media != null)
id = media.getId();
}
}
mMedialibrary.increasePlayCount(id);
}
......
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