Skip to content

Commit 29cd79c

Browse files
Dianne HackbornAndroid Git Automerger
authored andcommitted
am c986d6f: Merge "Fix issue #5906017: Missing menu entries in portrait when in compatibility mode" into ics-mr1
* commit 'c986d6f01b00dd760ba1650918baadd24a6dc838': Fix issue #5906017: Missing menu entries in portrait when in compatibility mode
2 parents 9dc211a + c986d6f commit 29cd79c

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)