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 authored and Balcan committed Jun 18, 2024
1 parent 44500f1 commit 82cd3f1
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 82cd3f1

Please sign in to comment.