commit | dd1d40ef0d62b10e0774123ba5e0f3b27708fa50 | [log] [tgz] |
---|---|---|
author | Ben Lin <linben@google.com> | Thu Jan 14 18:10:37 2021 -0800 |
committer | Ben Lin <linben@google.com> | Sat Jan 23 01:06:06 2021 -0800 |
tree | be28b9cf54db9a47c3e8ac1af3f2626d76d7ba3a | |
parent | 60a993de14864d2d3290c131ad75fe1511056a18 [diff] |
PiP pinch-to-resize: add double-tap to max/min size. Per spec, max size would be the biggest possible bounds within the movement bounds (displayWidth - 2 * insetWidth), and min size would be 40% of the width. This also fixes the issue of portrait PiP not resizing correctly due to wrong math being done in the resize algorithm. Bug: 166478885 Test: Double-tap on PiP Change-Id: I2e239d23a0e2519c0b482005614a1faddb1f808a