Check 'DeviceFoldStateProvider' is already started
Start 'DeviceFoldStateProvider' only if it is not already started. * There were multiple calls to start(), resulting in multiple calls to notifyFoldUpdate() for each event. * Some calls to notifyFoldUpdate() were delayed and hence updated the value of lastHingeAngleBeforeTransition to incorrect values that blocked animation for Notification Shade. * This change decreased the flakiness of StatusBarFoldAnimationTest from 30 to 0% (https://android-build.googleplex.com/builds/abtd/run/L52400000961960941) Bug: 286514755 Test: StatusBarFoldAnimationTest Change-Id: I3e268a1449f83afbda233906ff36a376a0f7f226
Loading
Please register or sign in to comment