Refactor ArrayList fields to List

This commit is contained in:
Eric Xu 2021-05-21 17:56:10 -04:00 committed by Zhiheng Xu
parent 57474e2dab
commit 013c59f904

View file

@ -41,12 +41,12 @@ import io.reactivex.rxjava3.subjects.BehaviorSubject;
public abstract class PlayQueue implements Serializable { public abstract class PlayQueue implements Serializable {
public static final boolean DEBUG = MainActivity.DEBUG; public static final boolean DEBUG = MainActivity.DEBUG;
private ArrayList<PlayQueueItem> backup; private List<PlayQueueItem> backup;
private ArrayList<PlayQueueItem> streams; private List<PlayQueueItem> streams;
@NonNull @NonNull
private final AtomicInteger queueIndex; private final AtomicInteger queueIndex;
private final ArrayList<PlayQueueItem> history; private final List<PlayQueueItem> history;
private transient BehaviorSubject<PlayQueueEvent> eventBroadcast; private transient BehaviorSubject<PlayQueueEvent> eventBroadcast;
private transient Flowable<PlayQueueEvent> broadcastReceiver; private transient Flowable<PlayQueueEvent> broadcastReceiver;