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

Commit 2a5da8b3 authored by Christopher R. Palmer's avatar Christopher R. Palmer Committed by Steve Kondik
Browse files

doze: Do not bother checking proximity for the DOZE_ACTION intent

The intent is a desire to show the intent and trust the sender to
determine whether or not it should really be shown.

Change-Id: I1c613071b136de61f12bc0556283a80e1248a4a8
parent 32339bf9
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -217,7 +217,8 @@ public class DozeService extends DreamService {
            // Here we need a wakelock to stay awake until the pulse is finished.
            mWakeLock.acquire();
            mPulsing = true;
            if (!mDozeParameters.getProxCheckBeforePulse()) {
            if (!mDozeParameters.getProxCheckBeforePulse() ||
                    reason == DozeLog.PULSE_REASON_INTENT) {
                // skip proximity check
                continuePulsing(reason);
                return;