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

Skip to content
Commit a6f9b086 authored by Riddle Hsu's avatar Riddle Hsu Committed by Android Build Coastguard Worker
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

(cherry picked from commit e3d243d3)
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:494547431fdff4bde9f2f45367c6e4741380ea7c)
Merged-In: Idaa7280ed23076b3282c987a249259e0c38b6630
Change-Id: Idaa7280ed23076b3282c987a249259e0c38b6630
parent d5398573
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