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

Commit c8fe229c authored by Christopher R. Palmer's avatar Christopher R. Palmer Committed by Steve Kondik
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 fc11ec49
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -3029,6 +3029,10 @@ public class Intent implements Parcelable, Cloneable {
    public static final String EXTRA_PROCESS_TEXT_READONLY =
            "android.intent.extra.PROCESS_TEXT_READONLY";

    /** {@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();
                }
            }