Skip to content
Commit 1129df1b authored by Beverly's avatar Beverly
Browse files

Only restart the sleep state if SysUI was dozing

Screensaver (other non-sysi dreams) are handled by other apps, so
if SysUI crashes then SysUI isn't responsible for starting back up those
dreams. SysUI is only responsible for restarting doze/AOD.

Test: atest RestartDozeListenerTest
Test: manually crash systemui (adb shell am crash com.android.systemui)
from: awake, doze, aod (if possible), and screensaver and observe
that after a few seconds from the restart, the device is in the same
awake/doze/aod/screensaver state
Fixes: 273963292

Change-Id: I7f19831ea04d97fea3e64d43dbefcd517ba3d2a5
parent c82fa1ff
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