@Override public void onDismiss(DialogInterface dialog) { super.onDismiss(dialog); PrefUtil.unregisterOnActivityDestroyListener(this, this); }