make sure the dialog is still shown before dismissing
This commit is contained in:
parent
78283542be
commit
76df0c8721
1 changed files with 5 additions and 2 deletions
|
@ -60,9 +60,12 @@ public class UnzipPassDialog {
|
|||
activity.runOnUiThread(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
if (myProgress.isShowing()) {
|
||||
myProgress.dismiss();
|
||||
// TODO - check if it would be good to inform the user in another way
|
||||
DisplayError(activity, activity.getString(R.string.invalid_passbook_title), reason);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue