diff options
author | Bill Lin <lbill@google.com> | 2021-06-12 00:22:17 +0800 |
---|---|---|
committer | Bill Lin <lbill@google.com> | 2021-06-15 05:15:44 +0800 |
commit | 61766a732cb7f1e2b6f7a818b1bbb86cb8d7f0f1 (patch) | |
tree | ff47c8fa3cdc4867cf37b6906bfce75b43f22bb6 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | e76529cb29b02b704a6e7fa7b369c1596c735e1a (diff) |
Settings Switch animation jank while enabled One-handed mode
Switch is CompoundButton(View) and animating position when user
tap on it. Unfortunatly when set overlay pakcage enabled, Switch
componet will invoke onLayout() and cancelPositionAnimator(),
that result the UX feel jank.
We add a delay(250ms) before execute runtime resouce overlay
to ensure the widget animation finished first.
Test: Manual Settings > Gesture > One Handed Mode > Tap Switch
Bug: 190584055
Change-Id: Ia42fdf3ed699afd51c154cb0a53581ef67959c71
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions