Commit f701ad10 authored by Geoffrey Métais's avatar Geoffrey Métais

MediaWrapperList: Simplify initialization

parent 1978a18b
......@@ -41,15 +41,10 @@ public class MediaWrapperList {
private static final int EVENT_MOVED = 2;
/* TODO: add locking */
private List<MediaWrapper> mInternalList;
private List<EventListener> mEventListenerList;
private final List<MediaWrapper> mInternalList = new ArrayList<>();
private final List<EventListener> mEventListenerList = new ArrayList<>();
private int mVideoCount = 0;
public MediaWrapperList() {
mEventListenerList = new ArrayList<>();
mInternalList = new ArrayList<>();
}
public synchronized void add(MediaWrapper media) {
mInternalList.add(media);
signalEventListeners(EVENT_ADDED, mInternalList.size()-1, -1, media.getLocation());
......
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