private final void newGameMode(int gameModeType){
  Editor editor=settings.edit();
  String gameModeStr=String.format(Locale.US,"%d",gameModeType);
  editor.putString("gameMode",gameModeStr);
  editor.commit();
  gameMode=new GameMode(gameModeType);
  maybeAutoModeOff(gameMode);
  ctrl.setGameMode(gameMode);
}

private final void newGameMode ( int gameModeType ) { Editor editor = settings . edit ( ) ; String gameModeStr = String . format ( Locale . US , "%d" , gameModeType ) ; editor . putString ( "gameMode" , gameModeStr ) ; editor . commit ( ) ; gameMode = new GameMode ( gameModeType ) ; maybeAutoModeOff ( gameMode ) ; ctrl . setGameMode ( gameMode ) ; }
set new game mode .
