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

Commit 4267ff2f authored by Louis Chang's avatar Louis Chang
Browse files

Checking Settings config for quick pick-up gesture

...in order to turn it off while running tests

Bug: 204145453
Test: atest ActivityVisibilityTests
Change-Id: I8dcba88f6d0dc3370cb189034ca4bc2935103233
parent a93b661b
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -109,7 +109,8 @@ public class AmbientDisplayConfiguration {

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