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

Commit 1c047803 authored by Yuncheol Heo's avatar Yuncheol Heo Committed by Android Git Automerger
Browse files

am 63674ed0: Don\'t clear local device when it goes to the standby mode.

* commit '63674ed0034f44ffdd39c1eba590b8dd26fa6464':
  Don't clear local device when it goes to the standby mode.
parents 2682030a 4b54271f
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -281,7 +281,7 @@ public final class HdmiControlService extends SystemService {
        // A container for [Logical Address, Local device info].
        final SparseArray<HdmiCecLocalDevice> devices = new SparseArray<>();
        final SparseIntArray finished = new SparseIntArray();
        mCecController.clearLogicalAddress();
        clearLocalDevices();
        for (int type : deviceTypes) {
            final HdmiCecLocalDevice localDevice = HdmiCecLocalDevice.create(this, type);
            localDevice.init();
@@ -1415,7 +1415,9 @@ public final class HdmiControlService extends SystemService {
                devices.remove(device);
                if (devices.isEmpty()) {
                    onStandbyCompleted();
                    clearLocalDevices();
                    // We will not clear local devices here, since some OEM/SOC will keep passing
                    // the received packets until the application processor enters to the sleep
                    // actually.
                }
            }
        });