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

Update config according to insets of status bar

Previously, only cutout and navbar are included, so only the change
of decor frame may trigger config change.
But screenWidthDp and screenHeightDp are calculated according to
config (stable) frame, which includes the insets from status bar.

So this change makes the display configuration consistent with the
latest state of the display decor insets.

Also includes Ieedcc6388237b7feccd8a869105a5f8e70ff4afd to ensure
insets in non-current rotation are updated.

Fix: 259693044
Test: DisplayPolicyTests#testUpdateDisplayConfigurationByDecor

Merged-In: Idaa7280ed23076b3282c987a249259e0c38b6630
Change-Id: Idaa7280ed23076b3282c987a249259e0c38b6630
(cherry picked from commit e3d243d3)
parent 0ba161ac
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