summaryrefslogtreecommitdiff
path: root/tools/aapt2/diff/Diff.cpp
diff options
context:
space:
mode:
authorRiddle Hsu <riddlehsu@google.com>2020-05-05 23:07:59 +0800
committerRiddle Hsu <riddlehsu@google.com>2020-06-03 18:39:30 +0800
commit80f4f7c8fd71f508aaea83bd5a02ac1c5505f952 (patch)
tree9840177fdbd45ed964e4792421d3f8f16566a62c /tools/aapt2/diff/Diff.cpp
parent75f35b0494fd200ce2d4bd58187654da5bc99fe6 (diff)
Compare letterbox and bar content frame with the same rotation
If the device has cutout, and an activity with non-always layout cutout mode is launching to different rotation, while the fixed rotation transform exists, BarController#isTransparentAllowed uses the non-rotated bar frame to compare with the letterbox of rotated activity. That may cause status bar becomes opaque a while even the activity can draw the bar background. This change stores the bar content frame when simulating the layout of rotated display. Then BarController#isTransparentAllowed can get the frame with corresponding rotation to check whether the letterbox intersects or contain the bar area. Fixes: 155724528 Test: atest SizeCompatTests#testLaunchWithFixedRotationTransform Change-Id: I832f895db9ea67fa852a4465c47467927ccd1e2a
Diffstat (limited to 'tools/aapt2/diff/Diff.cpp')
0 files changed, 0 insertions, 0 deletions