diff options
| author | 2023-07-12 14:14:02 +0000 | |
|---|---|---|
| committer | 2023-07-27 18:36:53 +0100 | |
| commit | 2d36b04d200f26af6a11eab0710d0e96148c2eaf (patch) | |
| tree | e25b77c86727810c7944722bdb4e0dc2f8d2bb4c /libs/input/PointerController.cpp | |
| parent | 4b8e8ea3a592f7f66a38e8f7fa885958700187db (diff) | |
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
Diffstat (limited to 'libs/input/PointerController.cpp')
0 files changed, 0 insertions, 0 deletions