Fix the device been wake up after dozing.
The real device would be wake up after dozing because of hiding bouncer. The sequence would be like: DozeServiceHost#updateDozing StatusBarKeyguardViewManager#reset StatusBarKeyguardViewManager#hideBouncer. And if the expansion state is EXPANSION_VISIBLE, hide bouncer will overwrite the expansion to EXPANSION_HIDDEN, which would cause KeyguardBouncer#dispatchFullyShown then wakeup the device. A simple idea is we don't need to overwrite the expansion state while hide bouncer since dispatchExpansionChanged can be triggerred when setExpansion been called. Bug: 175423965 Bug: 175920249 Test: atest KeyguardTests Change-Id: I911ed31ccb402713eb0a00faf0b176c88488501b
Loading
Please register or sign in to comment