Skip to content

Commit

Permalink
fix(android): hide/show progress dialog back-to-back puts it in bad s…
Browse files Browse the repository at this point in the history
…tate (#11746)

regression was introduced as of Titanium 8.1.1

Fixes TIMOB-27573
  • Loading branch information
jquick-axway authored Jun 5, 2020
1 parent edcb376 commit 4e4b509
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,10 @@ protected void handleHide()
@Override
public void onCancel(DialogInterface dialog)
{
if (dialog != this.progressDialog) {
return;
}

this.visible = false;
this.progressDialog = null;
fireEvent(TiC.EVENT_CANCEL, null);
Expand All @@ -287,6 +291,10 @@ public void onCancel(DialogInterface dialog)
@Override
public void onDismiss(DialogInterface dialog)
{
if (dialog != this.progressDialog) {
return;
}

this.visible = false;
this.progressDialog = null;
}
Expand Down

0 comments on commit 4e4b509

Please sign in to comment.