Merge "Checking Settings config for quick pick-up gesture" into sc-v2-dev am: fcfd7e1a79

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16324227

Change-Id: Ie09ce22aa73f89d1580542dfa4335be29de14b47
This commit is contained in:
Louis Chang
2021-11-24 01:36:48 +00:00
committed by Automerger Merge Worker

View File

@@ -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);
}