Merge "Fix boot on sw600dp devices."

This commit is contained in:
Daniel Sandler
2012-04-06 08:46:52 -07:00
committed by Android (Google) Code Review

View File

@@ -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(