Skip to content
Snippets Groups Projects
Commit 1978a18b authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

MediaWrapperList: send event on media added

parent c4e00976
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment