diff options
author | Hongwei Wang <hwwang@google.com> | 2020-12-07 14:57:27 -0800 |
---|---|---|
committer | Hongwei Wang <hwwang@google.com> | 2020-12-09 18:09:53 -0800 |
commit | f150dc49b19cda9d6db8010d430a87b50d29d51e (patch) | |
tree | 26aae266ef15115c5462380ecb7acf43a01ec87c /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 42991d36ca1c6be1a989bb84168585352f591094 (diff) |
Add API to differentiate PiP content
Added PictureInPictureParams.Builder#setSeamlessResizeEnabled that app
can specify its resize capability. For backward compatibility, this is
default to true and when it's set to false, SystemUI can perform
transition to overcome the artifacts due to resize.
Also included in this change, the primitives like mAutoEnterEnabled and
mSeamlessResizeEnabled would be problematic with the following patterns
from an Activity
```
PicureInPictureParams.Builder builder = new PictureInPictureParams.Builder();
builder.setAutoEnterEnabled(true);
setPictureInPictureParams(builder.build());
enterPictureInPictureMode();
```
with the code snippet above, the PictureInPictureParams#copyOnlySet will
override the mAutoEnterEnabled to false. Fixed by switching the
primitive to Boolean object.
Bug: 175052991
Test: atest PinnedStackTests
Change-Id: I4d52f59b49dcbb8998ed74237bdba93c0ad139e4
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions