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

Commit 26d9a480 authored by Christopher R. Palmer's avatar Christopher R. Palmer Committed by Gerrit Code Review
Browse files

dozeui: Broadcast an intent when beginning a doze pulse

This will allow other components that need to update their
state to properly render the lock screen to do so rather
than display stale information.

Change-Id: I383c657c1b760fe8610ef431d494c0fe05d63fdb
parent de26b884
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -2858,6 +2858,10 @@ public class Intent implements Parcelable, Cloneable {
    /** {@hide} */
    public static final String ACTION_MASTER_CLEAR = "android.intent.action.MASTER_CLEAR";

    /** {@hide} */
    public static final String ACTION_DOZE_PULSE_STARTING =
            "android.intent.action.DOZE_PULSE_STARTING";

    // ---------------------------------------------------------------------
    // ---------------------------------------------------------------------
    // Standard intent categories (see addCategory()).
+1 −0
Original line number Diff line number Diff line
@@ -259,6 +259,7 @@ public class DozeService extends DreamService {
            @Override
            public void onPulseStarted() {
                if (mPulsing && mDreaming) {
                    mContext.sendBroadcast(new Intent(Intent.ACTION_DOZE_PULSE_STARTING));
                    turnDisplayOn();
                }
            }