diff options
author | Ben Lin <linben@google.com> | 2021-06-10 14:47:15 -0700 |
---|---|---|
committer | Ben Lin <linben@google.com> | 2021-06-10 14:47:15 -0700 |
commit | 8a8b1f632ad8926bd23c85de75c86558b429cce7 (patch) | |
tree | 23d4db6b2789bf59ede44c4ef566b074d553ee92 /libs/hwui/renderthread/CacheManager.cpp | |
parent | 53c5d85befa46d3e7519311c8f513ef368800460 (diff) |
PiP: Divide up the magnetic percent by 2.
At max size, doing a brute percentage calculation using width / minWidth
ends up with a magnetic distance that's too big. Divide by 2 again to
make it more natural.
Bug: 190657668
Test: Pinch to max size, drag down - doesn't immediate snap to it
anymore
Change-Id: Ib5de742b753239a151686c1a85b27a6fe553a577
Diffstat (limited to 'libs/hwui/renderthread/CacheManager.cpp')
0 files changed, 0 insertions, 0 deletions