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:
@@ -76,7 +76,7 @@ public class PickupSensor implements SensorEventListener {
|
|||||||
if (event.values[0] == 1) {
|
if (event.values[0] == 1) {
|
||||||
if (Utils.isPickUpSetToWake(mContext)) {
|
if (Utils.isPickUpSetToWake(mContext)) {
|
||||||
mWakeLock.acquire(WAKELOCK_TIMEOUT_MS);
|
mWakeLock.acquire(WAKELOCK_TIMEOUT_MS);
|
||||||
mPowerManager.wakeUp(SystemClock.uptimeMillis(),
|
mPowerManager.wakeUpWithProximityCheck(SystemClock.uptimeMillis(),
|
||||||
PowerManager.WAKE_REASON_GESTURE, TAG);
|
PowerManager.WAKE_REASON_GESTURE, TAG);
|
||||||
} else {
|
} else {
|
||||||
Utils.launchDozePulse(mContext);
|
Utils.launchDozePulse(mContext);
|
||||||
|
|||||||
Reference in New Issue
Block a user