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

Commit aca9ef4d authored by Daniel Sandler's avatar Daniel Sandler Committed by Android (Google) Code Review
Browse files

Merge "Fix boot on sw600dp devices."

parents 7a3bc874 c8cb3291
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -973,12 +973,13 @@ public class PhoneWindowManager implements WindowManagerPolicy {
                com.android.internal.R.dimen.navigation_bar_width);

        // Determine whether the status bar can hide based on the size
        // of the screen.  We assume sizes > 600dp are tablets where we
        // of the screen.  We assume sizes >= 600dp are tablets where we
        // will use the system bar.
        // XXX: This will change to 720dp soon.
        int shortSizeDp = shortSize
                * DisplayMetrics.DENSITY_DEFAULT
                / DisplayMetrics.DENSITY_DEVICE;
        mHasSystemNavBar = shortSizeDp > 600;
        mHasSystemNavBar = shortSizeDp >= 600;

        if (!mHasSystemNavBar) {
            mHasNavigationBar = mContext.getResources().getBoolean(