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

Commit 803aa179 authored by Olawale Ogunwale's avatar Olawale Ogunwale Committed by Android Git Automerger
Browse files

am 59820738: am d8aa4660: am da90a9c2: Merge "Do not allow the navigation bar...

am 59820738: am d8aa4660: am da90a9c2: Merge "Do not allow the navigation bar to move if width == height"

* commit '59820738':
  Do not allow the navigation bar to move if width == height
parents 8ca07337 59820738
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1430,8 +1430,8 @@ public class PhoneWindowManager implements WindowManagerPolicy {
        int shortSizeDp = shortSize * DisplayMetrics.DENSITY_DEFAULT / density;
        int longSizeDp = longSize * DisplayMetrics.DENSITY_DEFAULT / density;

        // Allow the navigation bar to move on small devices (phones).
        mNavigationBarCanMove = shortSizeDp < 600;
        // Allow the navigation bar to move on non-square small devices (phones).
        mNavigationBarCanMove = width != height && shortSizeDp < 600;

        mHasNavigationBar = res.getBoolean(com.android.internal.R.bool.config_showNavigationBar);
        // Allow a system property to override this. Used by the emulator.