Skip to content
Commit 80f4f7c8 authored by Riddle Hsu's avatar Riddle Hsu
Browse files

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
parent 75f35b04
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment