@Override public void onStart() { if (D) Log.d(TAG, "onStart()"); super.onStart(); mViewMode = mPrefs.getInt("dashboardviewmode", HarleyDroidDashboardView.VIEW_GRAPHIC); mHarleyDroidDashboardView.changeView( mViewMode, mOrientation == ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED ? getResources().getConfiguration().orientation == Configuration.ORIENTATION_PORTRAIT : mOrientation == ActivityInfo.SCREEN_ORIENTATION_PORTRAIT ? true : false, mUnitMetric); mHarleyDroidDashboardView.drawAll(mHD); }