Change-Id: Id768332d846d85f3d37a36bdf41a70cbaceb5332
Signed-off-by: Mike Lockwood <lockwood@android.com>
(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;
}