summaryrefslogtreecommitdiff
path: root/cmds/bootanimation/BootAnimation.cpp
diff options
context:
space:
mode:
author Josh Tsuji <tsuji@google.com> 2021-12-20 15:10:17 -0500
committer Josh Tsuji <tsuji@google.com> 2021-12-21 11:37:16 -0500
commit83df8faaa036aead0faef00cd2137e65d9f246c1 (patch)
tree12522750d8beb6b5af0d97232290d815407e4722 /cmds/bootanimation/BootAnimation.cpp
parente14bfadc0394a2a7f530d6d373f5954d97137dcd (diff)
Make DozeParameters responsible for setting PowerManager#setDozeAfterScreenOff.
Previously this was done in DozeUi, which is a component that is destroyed whenever we unlock the phone (and re-created when we enter AOD). Unfortunately, we relied on the fact that the keyguardUpdateMonitorCallback is not unregistered in DozeUi#destroy, and therefore continued to receive events and update setDozeAfterScreenOff until being garbage collected. That's obviously very risky. We rarely saw issues with this until status bar state was added as a criteria for whether or not to control the screen off animation (we can't do unlocked screen off if the shade is expanded). Once that was added, the status bar state at the time of garbage collection became the permanent control screen off setting until the next doze. Fixes: 203644049 Test: manual/atest SystemUITests Merged-In: I85e88e2657363af7a131bd4c31d9a36715593181 Change-Id: I85e88e2657363af7a131bd4c31d9a36715593181
Diffstat (limited to 'cmds/bootanimation/BootAnimation.cpp')
0 files changed, 0 insertions, 0 deletions