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

Commit 9e07c684 authored by LuK1337's avatar LuK1337
Browse files

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

Fixes: https://gitlab.com/LineageOS/issues/android/-/issues/3646
Change-Id: Ic546b25126e0dc44af444179f7041f6b5fe51763
parent 75d16c93
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);