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

Commit 136b060c authored by Yuncheol Heo's avatar Yuncheol Heo Committed by Android Git Automerger
Browse files

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

* commit '824dd785674aba7f204cf30898463153f18f53a9':
  Don't clear local device when it goes to the standby mode.
parents 28bfd381 1c047803
Loading
Loading
Loading
Loading
+4 −2
Original line number Original line Diff line number Diff line
@@ -281,7 +281,7 @@ public final class HdmiControlService extends SystemService {
        // A container for [Logical Address, Local device info].
        // A container for [Logical Address, Local device info].
        final SparseArray<HdmiCecLocalDevice> devices = new SparseArray<>();
        final SparseArray<HdmiCecLocalDevice> devices = new SparseArray<>();
        final SparseIntArray finished = new SparseIntArray();
        final SparseIntArray finished = new SparseIntArray();
        mCecController.clearLogicalAddress();
        clearLocalDevices();
        for (int type : deviceTypes) {
        for (int type : deviceTypes) {
            final HdmiCecLocalDevice localDevice = HdmiCecLocalDevice.create(this, type);
            final HdmiCecLocalDevice localDevice = HdmiCecLocalDevice.create(this, type);
            localDevice.init();
            localDevice.init();
@@ -1415,7 +1415,9 @@ public final class HdmiControlService extends SystemService {
                devices.remove(device);
                devices.remove(device);
                if (devices.isEmpty()) {
                if (devices.isEmpty()) {
                    onStandbyCompleted();
                    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.
                }
                }
            }
            }
        });
        });