diff options
author | Daniel Sandler <dsandler@android.com> | 2012-04-05 23:56:05 -0400 |
---|---|---|
committer | Daniel Sandler <dsandler@android.com> | 2012-04-05 23:57:26 -0400 |
commit | c8cb3291478fe9e836c1e1a56d3eae739b19a9cf (patch) | |
tree | 80a2fdae9068312159105cf9257b12654509ed00 /policy | |
parent | ac14351e16e1258f1cb54e2bf772b8be004eb2b8 (diff) | |
download | frameworks_base-c8cb3291478fe9e836c1e1a56d3eae739b19a9cf.zip frameworks_base-c8cb3291478fe9e836c1e1a56d3eae739b19a9cf.tar.gz frameworks_base-c8cb3291478fe9e836c1e1a56d3eae739b19a9cf.tar.bz2 |
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
Diffstat (limited to 'policy')
-rwxr-xr-x | policy/src/com/android/internal/policy/impl/PhoneWindowManager.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java b/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java index 1be5bd7..5697284 100755 --- a/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java +++ b/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java @@ -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( |