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

Skip to content
Commit 4bff841d authored by Lucas Silva's avatar Lucas Silva
Browse files

Fix DreamService race condition with overlay

When the service is finished, there is a race condition which exists if
an overlay connection is active. This causes the finish call to become
async, and therefore some of the internal state of the dream might
change by the time finish runs. This is causing the cleanup logic in
DreamController to be skipped, which is not correctly sending the
DREAMING_STOPPED broadcast.

Bug: 329305299
Test: atest android.service.dreams.cts.DreamServiceTest#testDreamServiceOnDestroyCallback
Flag: NA
Change-Id: I3c439938106e57c963889fa2281398acb5a1fac2
parent 2c765457
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment