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

Commit 5deab1f7 authored by Beverly's avatar Beverly
Browse files

Make quickPickup gesture depend on liftToWake

If lift to wake is disabled, also disable quickPickup.

Test: manual
Fixes: 204676931
Change-Id: I2c918fb706b24c77f1e74160052e5caae51144cd
parent 3abdb017
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -109,7 +109,9 @@ public class AmbientDisplayConfiguration {

    /** {@hide} */
    public boolean quickPickupSensorEnabled(int user) {
        return !TextUtils.isEmpty(quickPickupSensorType()) && !alwaysOnEnabled(user);
        return !TextUtils.isEmpty(quickPickupSensorType())
                && pickupGestureEnabled(user)
                && !alwaysOnEnabled(user);
    }

    /** {@hide} */