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

Commit 704c14a5 authored by Kun Liang's avatar Kun Liang Committed by Ricardo Cerqueira
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 3f27c2c4
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1318,6 +1318,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