diff options
author | Sergey Nikolaienkov <sergeynv@google.com> | 2020-08-28 13:52:43 +0000 |
---|---|---|
committer | Sergey Nikolaienkov <sergeynv@google.com> | 2020-08-28 13:52:55 +0000 |
commit | 600fe82949dcc9f5080503b9769f6be478b67747 (patch) | |
tree | d4d875b08f0d2da0ba50b38aa1ab920fca787ef6 /tools/aapt2/java/JavaClassGenerator.cpp | |
parent | 664cae5d9a8162004c25a28b64d59005e2538be1 (diff) |
Fix checking if PiP aspect ratio has changed
PipTaskOrganizer.applyPictureInPictureParams() by design should only
return true if the PiP aspect ratio has changed. However, it's also
retrurning true if the current mPictureInPictureParams are null (not
specified). This is wrong in cases when the new PiP params do not
specify aspect ration. This lead to stange PiP behaviours (see the
test). This CL fixes it.
Bug: 165794276
Test: atest CtsSystemUiTestCases:CustomPipActionsTests#pipMenu_doesNotClose_whenUpdating_customActions
Change-Id: Ib3de6344601cd5a31b249381fd5e83275ed9c4e4
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions