Skip to content
Commit 244d112a authored by Nick Chameyev's avatar Nick Chameyev
Browse files

[Unfold animation] Do not send start closing event before the inner display turned on

Currently, if the hinge angle sensor reported
a decreasing value before the inner screen
fully turned on, we can see a flicker because
it starts the fold animation (from progress=1.0f).
It is pretty consistently reproducible when
unfolding only to half foleded posture.

Updated the DeviceFoldStateProvider to not
report start closing event if the screen
hasn't been turned on.

Bug: 233045200
Test: atest com.android.systemui.unfold.updates.DeviceFoldStateProviderTest
Test: unfold to half-folded state multiple times
  => verify that there is no flicker
Change-Id: I516dbad67d201ead03e3dae593f12fc5a985447b
parent eca2762d
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