summaryrefslogtreecommitdiffstats
path: root/policy/src/com
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2012-04-10 18:35:54 -0700
committerDianne Hackborn <hackbod@google.com>2012-04-11 10:39:43 -0700
commitde368ff1c995bb0b9e713a2afa8ec7ae23446bb1 (patch)
tree82d43cdb9aae8ba1330927d2c64c395b6a76b373 /policy/src/com
parent50a926789f9ec335f72346a3a1c922729a301f34 (diff)
downloadframeworks_base-de368ff1c995bb0b9e713a2afa8ec7ae23446bb1.zip
frameworks_base-de368ff1c995bb0b9e713a2afa8ec7ae23446bb1.tar.gz
frameworks_base-de368ff1c995bb0b9e713a2afa8ec7ae23446bb1.tar.bz2
Change window manager to use fixed size for the status bar.
Unlike the nav bar, it only uses a fixed size for determining how to layout elements around it; it lets the status bar window itself be whatever size it wants. Change-Id: Id04278981ab38915280a47368fccc7ec14bb97ec
Diffstat (limited to 'policy/src/com')
-rwxr-xr-xpolicy/src/com/android/internal/policy/impl/PhoneWindowManager.java10
1 files changed, 4 insertions, 6 deletions
diff --git a/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java b/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
index d150b5c..518d5bf 100755
--- a/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
+++ b/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
@@ -2245,12 +2245,11 @@ public class PhoneWindowManager implements WindowManagerPolicy {
vf.right = mStableRight;
vf.bottom = mStableBottom;
+ // Let the status bar determine its size.
mStatusBar.computeFrameLw(pf, df, vf, vf);
- final Rect r = mStatusBar.getFrameLw();
- // Compute the stable dimensions whether or not the status bar is hidden.
- if (mDockTop == r.top) mStableTop = r.bottom;
- else if (mDockBottom == r.bottom) mStableBottom = r.top;
+ // For layout, the status bar is always at the top with our fixed height.
+ mStableTop = mUnrestrictedScreenTop + mStatusBarHeight;
// If the status bar is hidden, we don't want to cause
// windows behind it to scroll.
@@ -2258,8 +2257,7 @@ public class PhoneWindowManager implements WindowManagerPolicy {
// Status bar may go away, so the screen area it occupies
// is available to apps but just covering them when the
// status bar is visible.
- if (mDockTop == r.top) mDockTop = r.bottom;
- else if (mDockBottom == r.bottom) mDockBottom = r.top;
+ mDockTop = mUnrestrictedScreenTop + mStatusBarHeight;
mContentTop = mCurTop = mDockTop;
mContentBottom = mCurBottom = mDockBottom;