Code example for DialogFragment

Methods: getDialog, getRetainInstance, onDestroyView

0
	/** 
	 * workaround for issue #17423 
	 */ 
	@Override 
	public void onDestroyView() { 
		if (getDialog() != null && getRetainInstance())
			getDialog().setDismissMessage(null);
 
		super.onDestroyView(); 
	} 
 
	@Override 
	public void onDestroy() { 
		Log.d(TAG, "onDestroy");
		destroyed = true;
		super.onDestroy(); 
	} 
 
	public void updateProgress(int completed, int total) {
		if (dialog != null) {
			dialog.setIndeterminate(false);