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

Commit 3eb31041 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Get correct insets of the phone screen at boot"

parents a76d2608 ca4c1a34
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -6685,10 +6685,8 @@ public class PhoneWindowManager implements WindowManagerPolicy {

        // Navigation bar and status bar.
        getNonDecorInsetsLw(displayRotation, displayWidth, displayHeight, outInsets);
        if (mStatusBar != null) {
        outInsets.top = mStatusBarHeight;
    }
    }

    @Override
    public void getNonDecorInsetsLw(int displayRotation, int displayWidth, int displayHeight,
@@ -6696,7 +6694,7 @@ public class PhoneWindowManager implements WindowManagerPolicy {
        outInsets.setEmpty();

        // Only navigation bar
        if (mNavigationBar != null) {
        if (mHasNavigationBar) {
            int position = navigationBarPosition(displayWidth, displayHeight, displayRotation);
            if (position == NAV_BAR_BOTTOM) {
                outInsets.bottom = getNavigationBarHeight(displayRotation, mUiMode);