sm8250-common: doze: Enable proximity sensor check for raise to wake

Fixes: https://gitlab.com/LineageOS/issues/android/-/issues/3646
Change-Id: Ic546b25126e0dc44af444179f7041f6b5fe51763
This commit is contained in:
LuK1337
2021-06-19 10:58:32 +02:00
parent eae431410f
commit ae3fe29be1

View File

@@ -76,7 +76,7 @@ public class PickupSensor implements SensorEventListener {
if (event.values[0] == 1) {
if (Utils.isPickUpSetToWake(mContext)) {
mWakeLock.acquire(WAKELOCK_TIMEOUT_MS);
mPowerManager.wakeUp(SystemClock.uptimeMillis(),
mPowerManager.wakeUpWithProximityCheck(SystemClock.uptimeMillis(),
PowerManager.WAKE_REASON_GESTURE, TAG);
} else {
Utils.launchDozePulse(mContext);