Fix keyguard state when primary bouncer shown on hub while dreaming
If the primary bouncer is shown over the glanceable hub while dreaming,
we currently erronously transition back to occluded when the bouncer is
closed. This is because when in a dream state, the keyguard is occluded.
This fix adds a check to ensure we are occluded but not dreaming.
Test: atest KeyguardTransitionScenarioesTest
Bug: 325102385
Flag: ACONFIG com.android.systemui.communal_hub STAGING
Change-Id: I7420646cf513e830bf3cceb2a7798200c4a2d096
4 files changed