DO NOT MERGE. Restore status bar on phones.

Bug: 4529373
Change-Id: Ie08522dbf762e80ac077ce403ff83312cec907f7
This commit is contained in:
Daniel Sandler
2011-06-03 01:25:43 -04:00
committed by Dianne Hackborn
parent 0538e6217d
commit b4b44bd329

View File

@@ -774,8 +774,9 @@ public class PhoneWindowManager implements WindowManagerPolicy {
// Determine whether the status bar can hide based on the size
// of the screen. We assume sizes > 600dp are tablets where we
// will use the system bar.
int shortSizeDp = (shortSize*DisplayMetrics.DENSITY_DEVICE)
/ DisplayMetrics.DENSITY_DEFAULT;
int shortSizeDp = shortSize
* DisplayMetrics.DENSITY_DEFAULT
/ DisplayMetrics.DENSITY_DEVICE;
mStatusBarCanHide = shortSizeDp < 600;
mStatusBarHeight = mContext.getResources().getDimensionPixelSize(
mStatusBarCanHide