Skip to content

Commit

Permalink
fix: [ANDROAPP-6184] crash on delete data dialog callback (#3687)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmmateos authored Jun 18, 2024
1 parent 44500f1 commit 4150534
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 4150534

Please sign in to comment.