diff options
author | Garfield Tan <xutan@google.com> | 2020-05-13 09:31:28 -0700 |
---|---|---|
committer | Garfield Tan <xutan@google.com> | 2020-06-16 18:39:17 -0700 |
commit | a6a11712b83457bd18a9a12c73b0d10376204d48 (patch) | |
tree | 6f2be1559e64235fbd15e0973b2e7335ed3a0a4e /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | b70873a58c885562f00fb28d2f9ed9bab1a51e93 (diff) |
Notify config changes caused orientation changes
When windowing mode changes the requested orientation of tasks can
change as well so let's notify upward the hierarchy if it does.
In RVC we also added a special logic for display rotation when PIP is
enabled which I encapsulated here too.
Also change the check of matchParentsBounds() to check resolved bounds
because when a freeform task is maximized its requested bounds are still
preserved, but resolved bounds are empty (if not letterboxed).
Addtionally it cleans up some usage of matchParentsBounds().
Note this CL doesn't fix the case where the requested orientation isn't
reported if the task is letterboxed.
Bug: 156423660
Test: orientation change is notified when it changes.
Test: WM smoke tests.
Test: atest TaskRecordTests
Test: atest DisplayContentTests#testNoFixedRotationWithPip
Change-Id: Ieeb638a54441071754943f18eef74572e95f90db
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions