Skip to content

Commit c986d6f

Browse files
Dianne HackbornAndroid (Google) Code Review
authored andcommitted
Merge "Fix issue #5906017: Missing menu entries in portrait when in compatibility mode" into ics-mr1
2 parents a4474ae + a486a53 commit c986d6f

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)