Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4f13d951 authored by Massimo Carli's avatar Massimo Carli
Browse files

[32/n] Fix Insets for Letterbox in Shell

Each AppCompatLetterboxPolicyState implementation contains
the information related to the letterbox surfaces bounds.
The letterbox surfaces bounds information was missing in
case of the Letterbox implmentation in shell so the
logic related to status bar opacity was broken when the
flag was enabled.

The common logic to understand if the letterbox surfaces
overlap the bar has now been moved to AppCompatLetterboxUtils.

Flag: com.android.window.flags.app_compat_refactoring
Bug: 407731267
Test: atest WmTests:AppCompatLetterboxUtilsTest
Test: atest WmTests:SizeCompatTests

Change-Id: Ibe0a4460886c17c1dd57a2d6de16f53c77ddf730
parent 7e858498
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment