diff options
author | Daniel Sandler <dsandler@google.com> | 2011-06-03 01:25:43 -0400 |
---|---|---|
committer | Dianne Hackborn <hackbod@google.com> | 2011-06-03 11:11:10 -0700 |
commit | b4b44bd32983e154f2ad61b99809ed6cedd46d47 (patch) | |
tree | b98af9cc26f1eba2d0e06e73b5dd31a16bfcd92d /policy | |
parent | 0538e6217de35e418c9779fd48c8300e65cc4f1e (diff) | |
download | frameworks_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-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 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 |