Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 84d02249 authored by shaoweishen's avatar shaoweishen Committed by Shaowei Shen
Browse files

[Output Switcher] Use Thread-safe list to store mediaDevices in

MediaManager

Test: build pass
Bug: 235183673
Change-Id: Ic00c1085f3ddc3c9bf68815a4ef96a5f1391556c
parent fe44acf0
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -32,7 +32,7 @@ public abstract class MediaManager {
    private static final String TAG = "MediaManager";
    private static final String TAG = "MediaManager";


    protected final Collection<MediaDeviceCallback> mCallbacks = new CopyOnWriteArrayList<>();
    protected final Collection<MediaDeviceCallback> mCallbacks = new CopyOnWriteArrayList<>();
    protected final List<MediaDevice> mMediaDevices = new ArrayList<>();
    protected final List<MediaDevice> mMediaDevices = new CopyOnWriteArrayList<>();


    protected Context mContext;
    protected Context mContext;
    protected Notification mNotification;
    protected Notification mNotification;