Skip to content

Commit a486a53

Browse files
author
Dianne Hackborn
committed
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
1 parent fee5a86 commit a486a53

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

policy/src/com/android/internal/policy/impl/PhoneWindowManager.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1977,6 +1977,12 @@ public void beginLayoutLw(int displayWidth, int displayHeight, int displayRotati
19771977
mTmpNavigationFrame.offset(mNavigationBarWidth, 0);
19781978
}
19791979
}
1980+
// Make sure the content and current rectangles are updated to
1981+
// account for the restrictions from the navigation bar.
1982+
mContentTop = mCurTop = mDockTop;
1983+
mContentBottom = mCurBottom = mDockBottom;
1984+
mContentLeft = mCurLeft = mDockLeft;
1985+
mContentRight = mCurRight = mDockRight;
19801986
// And compute the final frame.
19811987
mNavigationBar.computeFrameLw(mTmpNavigationFrame, mTmpNavigationFrame,
19821988
mTmpNavigationFrame, mTmpNavigationFrame);

0 commit comments

Comments
 (0)