Skip to content

Commit

Permalink
fix: [ANDROAPP-6184] crash on delete data dialog callback
Browse files Browse the repository at this point in the history
  • Loading branch information
mmmateos committed Jun 14, 2024
1 parent 8b1fe07 commit 44378ab
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -292,8 +292,10 @@ public void deleteLocalData() {
getString(R.string.action_accept),
true,
() -> {
analyticsHelper().setEvent(CONFIRM_DELETE_LOCAL_DATA, CLICK, CONFIRM_DELETE_LOCAL_DATA);
presenter.deleteLocalData();
if (deleteLocalDataDialog.isAdded()) {
analyticsHelper().setEvent(CONFIRM_DELETE_LOCAL_DATA, CLICK, CONFIRM_DELETE_LOCAL_DATA);
presenter.deleteLocalData();
}
return null;
})
);
Expand Down

0 comments on commit 44378ab

Please sign in to comment.