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

Commit 81d13e8e authored by Erik Gilling's avatar Erik Gilling
Browse files

remove code to resize status bar when on HDMI

Change-Id: I413eff8fe664033e5187ac54247ec0140175b7ba
parent 7d425217
Loading
Loading
Loading
Loading
+0 −15
Original line number Original line Diff line number Diff line
@@ -2375,16 +2375,6 @@ public class PhoneWindowManager implements WindowManagerPolicy {
            if (mNavigationBarOnBottom) {
            if (mNavigationBarOnBottom) {
                // It's a system nav bar or a portrait screen; nav bar goes on bottom.
                // It's a system nav bar or a portrait screen; nav bar goes on bottom.
                int top = displayHeight - mNavigationBarHeightForRotation[displayRotation];
                int top = displayHeight - mNavigationBarHeightForRotation[displayRotation];
                if (mHdmiPlugged) {
                    // Move the nav bar up if the external display is the same aspect ratio
                    // but shorter.  This avoids clipping on the external display.
                    boolean sameAspect = mExternalDisplayHeight > 0 && displayHeight > 0
                        && ((float) mExternalDisplayWidth / mExternalDisplayHeight > 1)
                        == ((float) displayWidth / displayHeight > 1);
                    if (sameAspect && top > mExternalDisplayHeight) {
                        top = mExternalDisplayHeight;
                    }
                }
                mTmpNavigationFrame.set(0, top, displayWidth, displayHeight);
                mTmpNavigationFrame.set(0, top, displayWidth, displayHeight);
                mStableBottom = mStableFullscreenBottom = mTmpNavigationFrame.top;
                mStableBottom = mStableFullscreenBottom = mTmpNavigationFrame.top;
                if (navVisible) {
                if (navVisible) {
@@ -2404,11 +2394,6 @@ public class PhoneWindowManager implements WindowManagerPolicy {
            } else {
            } else {
                // Landscape screen; nav bar goes to the right.
                // Landscape screen; nav bar goes to the right.
                int left = displayWidth - mNavigationBarWidthForRotation[displayRotation];
                int left = displayWidth - mNavigationBarWidthForRotation[displayRotation];
                if (mHdmiPlugged) {
                    if (left > mExternalDisplayWidth) {
                        left = mExternalDisplayWidth;
                    }
                }
                mTmpNavigationFrame.set(left, 0, displayWidth, displayHeight);
                mTmpNavigationFrame.set(left, 0, displayWidth, displayHeight);
                mStableRight = mStableFullscreenRight = mTmpNavigationFrame.left;
                mStableRight = mStableFullscreenRight = mTmpNavigationFrame.left;
                if (navVisible) {
                if (navVisible) {