Code example for DialogFragment

Methods: onDismiss

0
    } 
 
    @Override 
    public void onDismiss(DialogInterface unused)
    { 
        super.onDismiss(unused);
    } 
 
    @Override 
    public void onCancel(DialogInterface unused)
    { 
        super.onCancel(unused);
    } 
 
    @Override 
    public void onCheckedChanged(CompoundButton compoundButton, boolean checkState)
    { 
        ((AlertDialog) this.getDialog()).getButton(DialogInterface.BUTTON_POSITIVE).setEnabled(checkState);
        SharedPreferences settings = getActivity().getPreferences(Context.MODE_PRIVATE);
        SharedPreferences.Editor editor = settings.edit();
        editor.putBoolean(SignalConstants.PROMPT_SETTING, checkState).commit();