am b4b44bd3: DO NOT MERGE. Restore status bar on phones.

* commit 'b4b44bd32983e154f2ad61b99809ed6cedd46d47':
  DO NOT MERGE. Restore status bar on phones.
This commit is contained in:
Daniel Sandler
2011-06-03 11:22:49 -07:00
committed by Android Git Automerger

View File

@@ -774,8 +774,9 @@ public class PhoneWindowManager implements WindowManagerPolicy {
// Determine whether the status bar can hide based on the size // 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. // will use the system bar.
int shortSizeDp = (shortSize*DisplayMetrics.DENSITY_DEVICE) int shortSizeDp = shortSize
/ DisplayMetrics.DENSITY_DEFAULT; * DisplayMetrics.DENSITY_DEFAULT
/ DisplayMetrics.DENSITY_DEVICE;
mStatusBarCanHide = shortSizeDp < 600; mStatusBarCanHide = shortSizeDp < 600;
mStatusBarHeight = mContext.getResources().getDimensionPixelSize( mStatusBarHeight = mContext.getResources().getDimensionPixelSize(
mStatusBarCanHide mStatusBarCanHide