Skip to content

Commit

Permalink
assign callback to null value in onDeatch
Browse files Browse the repository at this point in the history
  • Loading branch information
SaumiaSinghal committed Jun 21, 2020
1 parent 14005c4 commit 622c28f
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@ public Dialog onCreateDialog(@Nullable Bundle savedInstanceState) {
return alertDialog;
}

@Override
public void onDetach() {
super.onDetach();
callback = null;
}

public interface DeleteRepeatDialogCallback {
void deleteGroup();
void onCancelled();
Expand Down

0 comments on commit 622c28f

Please sign in to comment.