summaryrefslogtreecommitdiff
path: root/libs/androidfw/ApkAssets.cpp
diff options
context:
space:
mode:
author Juan Sebastian Martinez <juansmartinez@google.com> 2025-02-11 13:35:35 -0800
committer Juan Sebastian Martinez <juansmartinez@google.com> 2025-02-12 12:49:11 -0800
commitf7e02c3776293087426004b3a141bd7ac3db5f6c (patch)
tree15ffc6fce593db6c1a3660fd96a62ba22b185baf /libs/androidfw/ApkAssets.cpp
parent90db7a627d984411da662a3eee29c0a1a840ce01 (diff)
Scale snapback velocity by the magnetic multipliers.
When swiping and cancelling a drag on a swiped notificaiton, the final velocity of the interaction is used to trigger the snap-back animation for its magnetic neighbors. The velocity is multiplied by the same magnetic pull factor that controls the translation as notifications are being dragged. This significantly reduces the wobble observed when rapidly swiping a notification away. Test: manual. Verified reduced wobble in neighbor notifications. Flag: com.android.systemui.magnetic_notification_swipes Bug: 395893020 Change-Id: I5a7de2734abc708dd85050ce7b38f7a6f7cd5694
Diffstat (limited to 'libs/androidfw/ApkAssets.cpp')
0 files changed, 0 insertions, 0 deletions