summaryrefslogtreecommitdiffstats
path: root/policy
diff options
context:
space:
mode:
authorDaniel Sandler <dsandler@google.com>2011-06-03 11:26:17 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2011-06-03 11:26:17 -0700
commit58f48edd21aa6f50886e68ef23d801027e96ec01 (patch)
treebeb67362b07eb49db628b79c900af70e6bf0a80f /policy
parent955e8d79b1e75acd3e7963cb13afce134a193af3 (diff)
parentf5699b82adef34b0b6bd88554c6a017f8662985e (diff)
downloadframeworks_base-58f48edd21aa6f50886e68ef23d801027e96ec01.zip
frameworks_base-58f48edd21aa6f50886e68ef23d801027e96ec01.tar.gz
frameworks_base-58f48edd21aa6f50886e68ef23d801027e96ec01.tar.bz2
am f5699b82: am b4b44bd3: DO NOT MERGE. Restore status bar on phones.
* commit 'f5699b82adef34b0b6bd88554c6a017f8662985e': DO NOT MERGE. Restore status bar on phones.
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