sm8350-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:
parent
97f2aa546d
commit
367c5d3e7b
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue