summaryrefslogtreecommitdiff
path: root/libs/androidfw/AssetsProvider.cpp
diff options
context:
space:
mode:
author Miranda Kephart <mkephart@google.com> 2024-10-04 11:21:14 -0400
committer Miranda Kephart <mkephart@google.com> 2024-10-04 11:26:56 -0400
commitde7b75b4e0e964080b23e0e2e1ed65ecc9d450ec (patch)
tree955b7c56270f20c21d94cfb376bd5ab7cf03fa67 /libs/androidfw/AssetsProvider.cpp
parent20f915ecfc8d529eb01bc66831dfc38c38f23698 (diff)
Ensure screenshot dismissal velocity is never 0
It's possible to get a value of 0 passed in to the dismissal animation, which isn't handled correctly when attempting to set a minimum velocity. This change fixes the minimum velocity calculation so it is correct even if the input is 0f. Bug: 362859928 Fix: 362859928 Test: manual. invoke screenshots, move screenshot UI and let it return to its original location, then move it out again and move pointer straight up and release. screenshot should dismiss normally without getting 'stuck'. Flag: EXEMPT trivial fix Change-Id: Idc963cf322d11be007b5e9167e783c7a2661a03b
Diffstat (limited to 'libs/androidfw/AssetsProvider.cpp')
0 files changed, 0 insertions, 0 deletions