Code example for DialogFragment

Methods: dismiss

0
		} 
	} 
 
	@Click(R.id.dialog_no) 
	void cancel() { 
		dismiss();
	} 
 
	@Click(R.id.dialog_yes) 
	void confirm() { 
		final SharedPreferences settings = PreferenceManager
				.getDefaultSharedPreferences(getActivity());
		final String currentPassword = settings.getString(PasswordPrefs.KEY_PASSWORD,
				""); 
		final String enteredPassword = passwordField.getText().toString();
		final String verifiedPassword = passwordVerificationField.getText()
				.toString();
 
		if (currentPassword.isEmpty()) {
			setPassword(enteredPassword, verifiedPassword);
Experience pair programming with AI  Get Codota for Java