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

Commit 1494c011 authored by Dan Zhang's avatar Dan Zhang Committed by android-build-merger
Browse files

Merge "Fix HdmiCecLocalDevice concurrent access"

am: 54908299

Change-Id: I86dba1aa8ee360d5f813d3108902d6affd74b13f
parents fe607c0e 54908299
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -660,7 +660,8 @@ abstract class HdmiCecLocalDevice {
    @ServiceThreadOnly
    void startQueuedActions() {
        assertRunOnServiceThread();
        for (HdmiCecFeatureAction action : mActions) {
        // Use copied action list in that start() may remove itself.
        for (HdmiCecFeatureAction action : new ArrayList<>(mActions)) {
            if (!action.started()) {
                Slog.i(TAG, "Starting queued action:" + action);
                action.start();