Merge "Fix boot on sw600dp devices."
This commit is contained in:
committed by
Android (Google) Code Review
commit
aca9ef4ded
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user