diff options
author | Dianne Hackborn <hackbod@google.com> | 2012-01-23 17:23:08 -0800 |
---|---|---|
committer | Dianne Hackborn <hackbod@google.com> | 2012-01-23 18:02:46 -0800 |
commit | a486a53a02392c5d5de5a3d0856433a25e56b110 (patch) | |
tree | 1e10978bdb9fbdaf144d95e27f8c96362b15620d /policy | |
parent | fee5a860a8355cda071ff23644e943414ba7f65d (diff) | |
download | frameworks_base-a486a53a02392c5d5de5a3d0856433a25e56b110.zip frameworks_base-a486a53a02392c5d5de5a3d0856433a25e56b110.tar.gz frameworks_base-a486a53a02392c5d5de5a3d0856433a25e56b110.tar.bz2 |
Fix issue #5906017: Missing menu entries in portrait when in compatibility mode
This was a bug only when the status bar was hidden, the screen space for
the nav bar would not be correctly removed for all frames used in layout
computation.
This code really $*#&^!! needs to be cleaned up, the whole "status bar
is the system bar when on a tablet so it should take space from apps,
but status bar doesn't do that on phones but on phones there is a nav
bar that does the same thing" thing is whacked.
Proof that evolution DOESN'T WORK!!!!!!!!!!
Change-Id: I24e4994328480820cb638e7a40aa0b65b7ae2003
Diffstat (limited to 'policy')
-rwxr-xr-x | policy/src/com/android/internal/policy/impl/PhoneWindowManager.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java b/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java index 7c9f0b5..59b6626 100755 --- a/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java +++ b/policy/src/com/android/internal/policy/impl/PhoneWindowManager.java @@ -1977,6 +1977,12 @@ public class PhoneWindowManager implements WindowManagerPolicy { mTmpNavigationFrame.offset(mNavigationBarWidth, 0); } } + // Make sure the content and current rectangles are updated to + // account for the restrictions from the navigation bar. + mContentTop = mCurTop = mDockTop; + mContentBottom = mCurBottom = mDockBottom; + mContentLeft = mCurLeft = mDockLeft; + mContentRight = mCurRight = mDockRight; // And compute the final frame. mNavigationBar.computeFrameLw(mTmpNavigationFrame, mTmpNavigationFrame, mTmpNavigationFrame, mTmpNavigationFrame); |