Code example for DialogFragment

Methods: getDialogonDestroyView, getRetainInstance

0
 
	@Override 
	public void onDestroyView() { 
		// Work around bug: 
		// http://code.google.com/p/android/issues/detail?id=17423 
		Dialog dialog = getDialog();
 
		if ((dialog != null) && getRetainInstance()) {
			dialog.setDismissMessage(null);
		} 
 
		super.onDestroyView(); 
	} 
 
} 
Contextual code suggestions in your IDE  Get Codota for Java