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

Commit 2e9bdc45 authored by Darrell Shi's avatar Darrell Shi
Browse files

Fix DREAMING_STARTED broadcast.

This change fixes a bug where DREAMING_STARTED intent is only broadcast
once because mSentStartBroadcast flag is not being reset after
DREAM_STOPPED intent is broadcast.

Bug: 255732899
Fix: 255732899
Test: atest SystemDreamTest
Test: verified fingerprint unlock during dream works
Test: verified dream start/stop broadcasts are sent correctly
Change-Id: Ibcd8b8b00b855bfc52a295e2663926e55d664a69
parent 254acc56
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -240,6 +240,7 @@ final class DreamController {

                if (mSentStartBroadcast) {
                    mContext.sendBroadcastAsUser(mDreamingStoppedIntent, UserHandle.ALL);
                    mSentStartBroadcast = false;
                }

                mListener.onDreamStopped(dream.mToken);