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

Commit 36ceea80 authored by Craig Mautner's avatar Craig Mautner Committed by Android (Google) Code Review
Browse files

Merge "Restore nav bar position when wm size is reset."

parents 7bfddb54 d4ec3324
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -1045,10 +1045,8 @@ public class PhoneWindowManager implements WindowManagerPolicy {
        // SystemUI (status bar) layout policy
        int shortSizeDp = shortSize * DisplayMetrics.DENSITY_DEFAULT / density;

        if (shortSizeDp < 600) {
        // Allow the navigation bar to move on small devices (phones).
            mNavigationBarCanMove = true;
        }
        mNavigationBarCanMove = shortSizeDp < 600;

        mHasNavigationBar = mContext.getResources().getBoolean(
                com.android.internal.R.bool.config_showNavigationBar);