diff options
author | Riddle Hsu <riddlehsu@google.com> | 2021-04-26 23:05:02 +0800 |
---|---|---|
committer | Riddle Hsu <riddlehsu@google.com> | 2021-04-26 23:05:02 +0800 |
commit | 2eee0e623a891be2aaea8f50bdea13316d750631 (patch) | |
tree | e3250036dd19f4c20167fb9b153c7c6c366ae179 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 5b6127dffbdab075fbabf150aa2497244aedf7e7 (diff) |
Fix creating unexpected letterbox surfaces
With fixed rotation, the rotated activity should compare bounds
with rotated display. Otherwise AR#isLetterboxedAppWindow will
return false and create unnecessary letterbox surfaces.
Note that fixed rotation only applies when display area matches
display bounds.
The method matchesDisplayBounds is removed because the only usage
in WS#computeFrame uses parent frame, that is computed from
configuration bounds which doesn't tie to an actual display.
Fix: 186407859
Test: DisplayContentTests#testApplyTopFixedRotationTransform
Change-Id: I8cd978844f0ba8f9739f90c5c624d0c5fc3dc339
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions