Commit 1978a18b authored by Geoffrey Métais's avatar Geoffrey Métais

MediaWrapperList: send event on media added

parent c4e00976
......@@ -52,6 +52,7 @@ public class MediaWrapperList {
public synchronized void add(MediaWrapper media) {
mInternalList.add(media);
signalEventListeners(EVENT_ADDED, mInternalList.size()-1, -1, media.getLocation());
if (media.getType() == MediaWrapper.TYPE_VIDEO)
++mVideoCount;
}
......
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