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

Commit 436d2c9d authored by Kun Liang's avatar Kun Liang Committed by Linux Build Service Account
Browse files

QuickBoot: don't wake up screen when usb connected

Don't wake up screen in QuickBoot mode when usb connected.

Change-Id: If65936a0edbbc3b36a0768294e5c3bd7d741018a
parent b65c68b5
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1314,6 +1314,10 @@ public final class PowerManagerService extends SystemService
            return false;
        }

       if (SystemProperties.getInt("sys.quickboot.enable", 0) == 1) {
            return false;
        }

        // Don't wake when undocked from wireless charger.
        // See WirelessChargerDetector for justification.
        if (wasPowered && !mIsPowered