Merge "Fix issue #5906017: Missing menu entries in portrait when in compatibility mode" into ics-mr1

This commit is contained in:
Dianne Hackborn
2012-01-24 11:33:06 -08:00
committed by Android (Google) Code Review

View File

@ -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);