question: private void updateControls ( ) { Spinner difficulty = ( Spinner ) findViewById ( R . id . spinner_difficultyLevel ) ; difficulty . setSelection ( GameActivity . getDifficultyIndex ( ) ) ; Button resume = ( Button ) findViewById ( R . id . button_resumeGame ) ; resume . setEnabled ( GameActivity . canResumeFromSave ( ) ) ; CheckBox neverLoseBall = ( CheckBox ) findViewById ( R . id . checkbox_neverLoseBall ) ; neverLoseBall . setChecked ( GameActivity . getNeverLoseBall ( ) ) ; CheckBox soundEffectsEnabled = ( CheckBox ) findViewById ( R . id . checkbox_soundEffectsEnabled ) ; soundEffectsEnabled . setChecked ( GameActivity . getSoundEffectsEnabled ( ) ) ; TextView highScore = ( TextView ) findViewById ( R . id . text_highScore ) ; highScore . setText ( String . valueOf ( mHighScore ) ) ; }
target:  Sets the state of the UI controls to match our internal state.