Skip to content

Commit aca9ef4

Browse files
dsandlerAndroid (Google) Code Review
authored andcommitted
Merge "Fix boot on sw600dp devices."
2 parents 7a3bc87 + c8cb329 commit aca9ef4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

policy/src/com/android/internal/policy/impl/PhoneWindowManager.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -973,12 +973,13 @@ public void setInitialDisplaySize(Display display, int width, int height) {
973973
com.android.internal.R.dimen.navigation_bar_width);
974974

975975
// Determine whether the status bar can hide based on the size
976-
// of the screen. We assume sizes > 600dp are tablets where we
976+
// of the screen. We assume sizes >= 600dp are tablets where we
977977
// will use the system bar.
978+
// XXX: This will change to 720dp soon.
978979
int shortSizeDp = shortSize
979980
* DisplayMetrics.DENSITY_DEFAULT
980981
/ DisplayMetrics.DENSITY_DEVICE;
981-
mHasSystemNavBar = shortSizeDp > 600;
982+
mHasSystemNavBar = shortSizeDp >= 600;
982983

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

0 commit comments

Comments
 (0)