summaryrefslogtreecommitdiffstats
path: root/policy
diff options
context:
space:
mode:
authorDaniel Sandler <dsandler@google.com>2011-06-03 01:25:43 -0400
committerDianne Hackborn <hackbod@google.com>2011-06-03 11:11:10 -0700
commitb4b44bd32983e154f2ad61b99809ed6cedd46d47 (patch)
treeb98af9cc26f1eba2d0e06e73b5dd31a16bfcd92d /policy
parent0538e6217de35e418c9779fd48c8300e65cc4f1e (diff)
downloadframeworks_base-b4b44bd32983e154f2ad61b99809ed6cedd46d47.zip
frameworks_base-b4b44bd32983e154f2ad61b99809ed6cedd46d47.tar.gz
frameworks_base-b4b44bd32983e154f2ad61b99809ed6cedd46d47.tar.bz2
DO NOT MERGE. Restore status bar on phones.
Bug: 4529373 Change-Id: Ie08522dbf762e80ac077ce403ff83312cec907f7
Diffstat (limited to 'policy')
-rwxr-xr-xpolicy/src/com/android/internal/policy/impl/PhoneWindowManager.java5
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 a1e4a2c..8d8ff96 100755
--- a/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
+++ b/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
@@ -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