Code example for DialogFragment

Methods: onPause

0
        } 
    } 
     
    @Override 
    public void onPause() { 
    	super.onPause(); 
    	if(mEditTitle.getText().toString().equals(android.R.string.untitled) || 
    			mEditTitle.getText().toString().equals("")) {
    		mListener.onDialogCancelClick(true);
    	} 
    } 
     
    @Override 
    public void onCancel (DialogInterface dialog) {
    	if(mEditTitle.getText().toString().equals(android.R.string.untitled) || 
    			mEditTitle.getText().toString().equals("")) {
    		mListener.onDialogCancelClick(true);
    	} 
    } 
	 
	@Override