Merge "Set rotation to landscape on HDMI instead of 0"

This commit is contained in:
Erik Gilling
2011-08-16 15:57:24 -07:00
committed by Android (Google) Code Review

View File

@@ -2850,7 +2850,7 @@ public class PhoneWindowManager implements WindowManagerPolicy {
// or orientation sensor disabled
//or case.unspecified
if (mHdmiPlugged) {
return Surface.ROTATION_0;
return mLandscapeRotation;
} else if (mLidOpen == LID_OPEN) {
return mLidOpenRotation;
} else if (mDockMode == Intent.EXTRA_DOCK_STATE_CAR && mCarDockRotation >= 0) {