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

Skip to content
Commit c9889ea6 authored by chaviw's avatar chaviw
Browse files

Use WC bounds for insets calculation

When computing insets based on navigation bar and status bar, use the
window's bounds instead of display bounds to ensure it compenstates for
the display area. The system bars should use their bounds to ensure
they aren't creating insets outside the display area. The window bounds
are also used when calculating the size and placement of the system
bars.

Bug: 156676090
Test: DisplayPolicyLayoutTests
Test: DisplayPolicyInsetsTests
Test: InsetsPolicyTest
Test: InsetsSourceProviderTest
Test: InsetsStateControllerTest
Change-Id: I9a3481fcd0146463c10077967b49bf46190f7946
parent 85cac3bc
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