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

Commit 90e321a2 authored by /e/ robot's avatar /e/ robot
Browse files

Merge remote-tracking branch 'origin/lineage-16.0' into v1-pie

parents 6d65da2d 5570fe8d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1904,7 +1904,7 @@ public class PhoneWindowManager implements WindowManagerPolicy {
        if (FactoryTest.isLongPressOnPowerOffEnabled()) {
            return LONG_PRESS_POWER_SHUT_OFF_NO_CONFIRM;
        }
        if (mTorchLongPressPowerEnabled && (!isScreenOn() || isDozeMode())) {
        if (mTorchLongPressPowerEnabled && (!isScreenOn() || isDozeMode() || mTorchEnabled)) {
            return LONG_PRESS_POWER_TORCH;
        }
        return mLongPressOnPowerBehavior;