Skip to content

Commit 4e4b509

Browse files
authored
fix(android): hide/show progress dialog back-to-back puts it in bad state (#11746)
regression was introduced as of Titanium 8.1.1 Fixes TIMOB-27573
1 parent edcb376 commit 4e4b509

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

android/modules/ui/src/java/ti/modules/titanium/ui/widget/TiUIProgressIndicator.java

+8
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,10 @@ protected void handleHide()
279279
@Override
280280
publicvoidonCancel(DialogInterfacedialog)
281281
{
282+
if (dialog != this.progressDialog) {
283+
return;
284+
}
285+
282286
this.visible = false;
283287
this.progressDialog = null;
284288
fireEvent(TiC.EVENT_CANCEL, null);
@@ -287,6 +291,10 @@ public void onCancel(DialogInterface dialog)
287291
@Override
288292
publicvoidonDismiss(DialogInterfacedialog)
289293
{
294+
if (dialog != this.progressDialog) {
295+
return;
296+
}
297+
290298
this.visible = false;
291299
this.progressDialog = null;
292300
}

0 commit comments

Comments
 (0)
close