currentGallery = (Gallery) gallery.getSelectedItem();  Log.log(Log.TRACE, MODULE, "current gallery: " + currentGallery); if ( currentGallery.getUsername() != null ) { username.setText( currentGallery.getUsername() ); } else { username.setText(""); }  if ( currentGallery.getPassword() != null ) { password.setText( currentGallery.getPassword() ); } else { password.setText(""); }
Log.log(Log.TRACE, MODULE, "updateGalleryParams: current gallery: " + getCurrentGallery());
	private void updateGalleryParams() {		currentGallery = (Gallery) gallery.getSelectedItem();		Log.log(Log.TRACE, MODULE, "current gallery: " + currentGallery);		if ( currentGallery.getUsername() != null ) {			username.setText( currentGallery.getUsername() );		} else {			username.setText("");		}		if ( currentGallery.getPassword() != null ) {			password.setText( currentGallery.getPassword() );		} else {			password.setText("");		}		updateAlbumCombo();		resetUIState();	}