Skip to content
Commit 39f818c7 authored by wilsonshih's avatar wilsonshih
Browse files

Allow bar to be transparent if letterbox contains bar

When top window request fullscreen and device contain a real cutout
and the layoutInDisplayCutout is default or never, a letterbox will
be created for this activity, which cause
BarController#isTransparentAllowed return false so the status bar
cannot be transparent, the bar will shows a black background
during hidding animation.
For a better animating effect, allow the bar to be transparent if
the letterbox is fully covered the bar.
Also modify the layout area of each letterbox surface, so it can be
more convenient to do geometric check when multiple cutout existing.

Bug: 152273579
Test: manualy verify no black background shows on status bar when
opening fullscreen app.
Test: atest DisplayPolicyTests LetterboxTest

Change-Id: I1f458394a8c6a2ac53a461b6819a026090d62898
parent 35c6b8f0
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