summaryrefslogtreecommitdiff
path: root/libs/input/SpriteController.cpp
diff options
context:
space:
mode:
author Juan Sebastian Martinez <juansmartinez@google.com> 2024-04-28 15:52:16 -0700
committer Juan Sebastian Martinez <juansmartinez@google.com> 2024-05-02 11:54:31 -0700
commit4806080ddf0478200a170fa754e79a105f7ba70b (patch)
tree58f09012ebfdd88fa57ef2e87684c1273a91e3fe /libs/input/SpriteController.cpp
parentdbf2dd623ba4754145067329e42d44892acf226a (diff)
Changing the background drawable boundary in the long-press effect.
Instead of scaling, the boundaries of the background drawable are modified. This is apparently faster and avoids jittering in the text labels (a side effect of animating the view scale). To ensure a smooth transition into the activity launch animation, an area correction is proposed. This correction is provided by the LaunchableView and ensures that the GhostedViewState has appropriate dimensions. In the case of the QS tile after long-press, the background drawable bounds and the tile's dimensions don't agree. This approach ensures a smooth transition without having to re-layout the tile after the long-press. Test: atest SystemUITest:QSTileViewImplTest Flag: ACONFIG quick_settings_visual_haptics_longpress TEAMFOOD Bug: 330473364 Bug: 331228389 Change-Id: I2660168b187f38bac53b59c484f99bb1b7c2ddb6
Diffstat (limited to 'libs/input/SpriteController.cpp')
0 files changed, 0 insertions, 0 deletions