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

Commit d4ec3324 authored by Craig Mautner's avatar Craig Mautner
Browse files

Restore nav bar position when wm size is reset.

The mNavigationBarCanMove variable was not reset when the dimensions
were restored using 'adb shell wm size reset'. This change restores
the correct value to it.

Fixes bug 9885741.

Change-Id: I6c9d3107fbc8a1e7acc0249691f4542cd8c07e93
parent acb837fe
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);