diff options
author | jorgegil@google.com <jorgegil@google.com> | 2019-10-30 14:37:19 -0700 |
---|---|---|
committer | jorgegil@google.com <jorgegil@google.com> | 2019-11-20 15:46:07 -0800 |
commit | 62f735e0f6170d9964fd27d24848c6a5417927f2 (patch) | |
tree | 5a4456cd9135bc89df489cf827d2944f5a58760e /tools/aapt2/java/JavaClassGenerator.cpp | |
parent | a11e1ce8e10b222e404fb491ef16054ee6f106e7 (diff) |
Persist PiP size to be restored on re-entry
Adds support for restoring the PiP size along with its snap fraction.
Modifies PipBoundsHandler logic to use both the previous size and
position (snap fraction) when calculaing the bounds for re-entry.
Additionally, some phone-specific logic is added to ensure that the
re-entry size that is restored is the non-expanded size (i.e. the
size before the bounds are animated to expand when pip is clicked).
Bug: 143641277
Test: enter pip, move it, touch to expand, restore. Then re-enter
pip. Pip should retain its size and position.
Test: atest PinnedStackTests
Change-Id: I21b7e4bf9360cd7da9faf2015c04d12d37c0241f
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions