Skip to content

Commit

Permalink
add isFinishing? before
Browse files Browse the repository at this point in the history
  • Loading branch information
hurshi1 committed Aug 16, 2018
1 parent 8a64e66 commit 2f30a0d
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,11 @@ public void onDismiss(DialogInterface dialogInterface) {
// ft.hide(WordDetailDialog.this);
// ft.commitAllowingStateLoss();
// dismiss();
onDialogDismiss();
if (null != listener) {
listener.onDismiss();
if (null != getActivity() && !getActivity().isFinishing()) {
onDialogDismiss();
if (null != listener) {
listener.onDismiss();
}
}
}
});
Expand Down

0 comments on commit 2f30a0d

Please sign in to comment.