Buggy code:
private boolean changed ; private boolean checkingReturn ; private boolean configsChanged ; private BgButton btnGoBack ; private BgButton btnAbout ; private EditText txtCustomMinutes ; private ObservableScrollView list ; private TextView lblTitle ; private RelativeLayout panelControls ; private LinearLayout panelSettings ; private SettingView optLoadCurrentTheme ; private SettingView optUseAlternateTypeface ; private SettingView optAutoTurnOff ; private SettingView optAutoIdleTurnOff ; private SettingView optKeepScreenOn ; private SettingView optTheme ; private SettingView optFlat ; private SettingView optExpandSeekBar ; private SettingView optVolumeControlType ; private SettingView optDoNotAttenuateVolume ; private SettingView optIsDividerVisible ; private SettingView optIsVerticalMarginLarge ; private SettingView optExtraSpacing ; private SettingView optForcedLocale ; private SettingView optScrollBarToTheLeft ; private SettingView optScrollBarSongList ; private SettingView optScrollBarBrowser ; private SettingView optWidgetTransparentBg ; private SettingView optWidgetTextColor ; private SettingView optWidgetIconColor ; private SettingView optHandleCallKey ; private SettingView optPlayWhenHeadsetPlugged ; private SettingView optBlockBackKey ; private SettingView optBackKeyAlwaysReturnsToPlayerWhenBrowsing ; private SettingView optWrapAroundList ; private SettingView optDoubleClickMode ; private SettingView optMarqueeTitle ; private SettingView optPrepareNext ; private SettingView optClearListWhenPlayingFolders ; private SettingView optGoBackWhenPlayingFolders ; private SettingView optExtraInfoMode ; private SettingView optForceOrientation ; private SettingView optTransition ; private SettingView optNotFullscreen ; private SettingView optFadeInFocus ; private SettingView optFadeInPause ; private SettingView optFadeInOther ; private SettingView lastMenuView ; private SettingView [ ] colorViews ; private int lastColorView ; public ActivitySettings ( boolean colorMode ) { } @ Override public CharSequence getTitle ( ) { } @ Override public void onCreateContextMenu ( ContextMenu menu , View view , ContextMenuInfo menuInfo ) { } @ Override public boolean onMenuItemClick ( MenuItem item ) { if ( ( ( lastMenuView ) == ( optAutoTurnOff ) ) || ( ( lastMenuView ) == ( optAutoIdleTurnOff ) ) ) { if ( ( item . getItemId ( ) ) >= 0 ) { if ( ( lastMenuView ) == ( optAutoTurnOff ) ) { Player . setTurnOffTimer ( item . getItemId ( ) ) ; optAutoTurnOff . setSecondaryText ( getAutoTurnOffString ( ) ) ; } else { Player . setIdleTurnOffTimer ( item . getItemId ( ) ) ; optAutoIdleTurnOff . setSecondaryText ( getAutoIdleTurnOffString ( ) ) ; } } else { final Context ctx = getHostActivity ( ) ; final LinearLayout l = ( ( LinearLayout ) ( UI . createDialogView ( ctx , null ) ) ) ; TextView lbl = new TextView ( ctx ) ; lbl . setText ( msg_turn_off ) ; lbl . setTextSize ( COMPLEX_UNIT_PX , _DLGsp ) ; l . addView ( lbl ) ; txtCustomMinutes = new EditText ( ctx ) ; txtCustomMinutes . setContentDescription ( ctx . getText ( msg_turn_off ) ) ; txtCustomMinutes . setTextSize ( COMPLEX_UNIT_PX , _DLGsp ) ; txtCustomMinutes . setInputType ( TYPE_CLASS_NUMBER ) ; txtCustomMinutes . setSingleLine ( ) ; final LayoutParams p = new LayoutParams ( LayoutParams . MATCH_PARENT , LayoutParams . WRAP_CONTENT ) ; p . topMargin = UI . _DLGsppad ; txtCustomMinutes . setLayoutParams ( p ) ; txtCustomMinutes . setText ( Integer . toString ( ( ( lastMenuView ) == ( optAutoTurnOff ) ? Player . turnOffTimerCustomMinutes : Player . idleTurnOffTimerCustomMinutes ) ) ) ; l . addView ( txtCustomMinutes ) ; UI . prepareDialogAndShow ( new android . app . AlertDialog . Builder ( getHostActivity ( ) ) . setTitle ( msg_turn_off_title ) . setView ( l ) . setPositiveButton ( ok , this ) . setNegativeButton ( cancel , this ) . create ( ) ) ; } } else if ( ( lastMenuView ) == ( optForcedLocale ) ) { if ( ( item . getItemId ( ) ) != ( UI . forcedLocale ) ) { <START_BUG> UI . setForcedLocale ( getApplication ( ) , getHostActivity ( ) , item . getItemId ( ) ) ; <END_BUG> WidgetMain . updateWidgets ( getApplication ( ) ) ; onCleanupLayout ( ) ; onCreateLayout ( false ) ; System . gc ( ) ; } } else if ( ( lastMenuView ) == ( optTheme ) ) { if ( ( item . getItemId ( ) ) == ( UI . THEME_CUSTOM ) ) { startActivity ( new ActivitySettings ( true ) , 0 , null , false ) ; } else { UI . setTheme ( getHostActivity ( ) , item . getItemId ( ) ) ; onCleanupLayout ( ) ; onCreateLayout ( false ) ; System . gc ( ) ; } } else if ( ( lastMenuView ) == ( optVolumeControlType ) ) { switch ( item . getItemId ( ) ) { case Player . VOLUME_CONTROL_STREAM : Player . setVolumeControlType ( getApplication ( ) , VOLUME_CONTROL_STREAM ) ; break ; case - 1 : Player . setVolumeControlType ( getApplication ( ) , VOLUME_CONTROL_DB ) ; UI . displayVolumeInDB = true ; break ; case - 2 : Player . setVolumeControlType ( getApplication ( ) , VOLUME_CONTROL_DB ) ; UI . displayVolumeInDB = false ; break ; case Player . VOLUME_CONTROL_NONE : Player . setVolumeControlType ( getApplication ( ) , VOLUME_CONTROL_NONE ) ; break ; } optVolumeControlType . setSecondaryText ( getVolumeString ( ) ) ; } else if ( ( lastMenuView ) == ( optExtraInfoMode ) ) { Song . extraInfoMode = item . getItemId ( ) ; optExtraInfoMode . setSecondaryText ( getExtraInfoModeString ( extraInfoMode ) ) ; songs . updateExtraInfo ( ) ; WidgetMain . updateWidgets ( getApplication ( ) ) ; } else if ( ( lastMenuView ) == ( optForceOrientation ) ) { UI . forcedOrientation = item . getItemId ( ) ; getHostActivity ( ) . setRequestedOrientation ( ( ( UI . forcedOrientation ) == 0 ? ActivityInfo . SCREEN_ORIENTATION_UNSPECIFIED : ( UI . forcedOrientation ) < 0 ? ActivityInfo . SCREEN_ORIENTATION_LANDSCAPE : ActivityInfo . SCREEN_ORIENTATION_PORTRAIT ) ) ; optForceOrientation . setSecondaryText ( getOrientationString ( ) ) ; } else if ( ( lastMenuView ) == ( optTransition ) ) { UI . setTransition ( item . getItemId ( ) ) ; optTransition . setSecondaryText ( UI . getTransitionString ( getApplication ( ) , item . getItemId ( ) ) ) ; }

Fix:
UI . setForcedLocale ( getApplication ( ) , getHostActivity ( ) , item . getItemId ( ) , true ) ;