Skip to content

Commit c8cb329

Browse files
committed
Fix boot on sw600dp devices.
Soon we'll switch this threshold to 720dp, once the PhoneStatusBar is ready to support 600dp wide devices. For now, however, restore the previous behavior. Bug: 6300512 Change-Id: Ibedb8ffc1b677e3bbe9af230598adb7db278635b
1 parent ac14351 commit c8cb329

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)