Merge change 26169 into eclair

* changes:
  Dock event overrides SCREEN_ORIENTATION_NOSENSOR so Home will rotate in the car dock.
This commit is contained in:
Android (Google) Code Review
2009-09-21 14:09:57 -04:00

View File

@@ -323,6 +323,8 @@ public class PhoneWindowManager implements WindowManagerPolicy {
(mCarDockEnablesAccelerometer && mDockState == Intent.EXTRA_DOCK_STATE_CAR) ||
(mDeskDockEnablesAccelerometer && mDockState == Intent.EXTRA_DOCK_STATE_DESK))
&& (appOrientation == ActivityInfo.SCREEN_ORIENTATION_USER ||
// dock overrides SCREEN_ORIENTATION_NOSENSOR
appOrientation == ActivityInfo. SCREEN_ORIENTATION_NOSENSOR ||
appOrientation == ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED)) {
return true;
}