Ensure canWakeDirectlyToGone is updated when the startedStep emits.
The last condition (currentState == GONE && startedState == GONE) results in this flow emitting true when we're GONE. It needs to emit false as soon as we transition from GONE -> *. This was happening most of the time when canIgnoreAuthAndReturnToGone emitted, but we can't rely on that to happen quickly enough since that flow maps wakefulness, not keyguard transition state. Bug: 278086361 Test: quickly cancel sleep transition Flag: com.android.systemui.keyguard_wm_state_refactor Change-Id: I568c74029766681f2fcd8a8d90eca0d15a9d1cfa
Loading
Please register or sign in to comment