Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a486a53a authored by Dianne Hackborn's avatar Dianne Hackborn
Browse files

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
parent fee5a860
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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);