Code example for DialogFragment

Methods: onDestroy

0
 
	@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);
			dialog.setMax(total);
			dialog.setProgress(completed);
		} 
	} 
}