Skip to content
Commit 4bd7a879 authored by Galia Peycheva's avatar Galia Peycheva
Browse files

Handle dream restart

When a startDream is called directly after a stopDream for the same
DreamService, the old instance should be stopped and the state
should be cleared. Otherwise, the old dream's
mStopStubbornDreamRunnable messes up the state in the dream manager
and power manager.

In this CL we stop the old dream immediately if a startDream is
called for the same dream component while the old dream is gently
waking. This ensures that the dream state is cleared.

Bug: 260205205
Test: 2x adb shell cmd dreams start-dreaming - verify the device is
      dreaming afterwards
Change-Id: Ibd261038430a38f2fa519549372ddbf19d7cb36b
parent 33211a43
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