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

Commit f8dcee51 authored by Erik Gilling's avatar Erik Gilling Committed by Android (Google) Code Review
Browse files

Merge "remove code to resize status bar when on HDMI"

parents c69238eb 81d13e8e
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) {