private void checkSceneRotation(ThemeInfo themeInfo) { if (null == themeInfo) { return; } int orientation = ActivityInfo.SCREEN_ORIENTATION_PORTRAIT; if (themeInfo.mThemeName.equals("landscape")) { orientation = ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE; } if (orientation != getRequestedOrientation()) { setRequestedOrientation(orientation); } }