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

Commit 10a058c9 authored by Erik Gilling's avatar Erik Gilling
Browse files

Set rotation to landscape on HDMI instead of 0



When the native orientation of the device is not landscape HDMI display
will be wrong.

Change-Id: Ie1d4f6b7247e0a43ff13b5318b644ec7cff293f2
Signed-off-by: default avatarErik Gilling <konkers@android.com>
parent 5cf1f1b2
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -2850,7 +2850,7 @@ public class PhoneWindowManager implements WindowManagerPolicy {
            // or orientation sensor disabled
            // or orientation sensor disabled
            //or case.unspecified
            //or case.unspecified
            if (mHdmiPlugged) {
            if (mHdmiPlugged) {
                return Surface.ROTATION_0;
                return mLandscapeRotation;
            } else if (mLidOpen == LID_OPEN) {
            } else if (mLidOpen == LID_OPEN) {
                return mLidOpenRotation;
                return mLidOpenRotation;
            } else if (mDockMode == Intent.EXTRA_DOCK_STATE_CAR && mCarDockRotation >= 0) {
            } else if (mDockMode == Intent.EXTRA_DOCK_STATE_CAR && mCarDockRotation >= 0) {