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
6 files changed