@Override public void onDestroy() { mProfileTracker.stopTracking(); if (actionListener != null) actionListener.onDialogClose(); super.onDestroy(); }
protected void finishDialog(int action, Object details) { DialogActionListener listener = (DialogActionListener) getActivity(); if (listener != null) listener.onDialogAction(action, details, getTag()); dismiss(); }