Merge "Prevent deadlock for clearWaitingDialog" into tm-dev

This commit is contained in:
Arthur Hung
2022-05-04 06:12:55 +00:00
committed by Android (Google) Code Review

View File

@@ -144,7 +144,8 @@ final class ErrorDialogController {
if (mWaitDialog == null) { if (mWaitDialog == null) {
return; return;
} }
mWaitDialog.dismiss(); final BaseErrorDialog dialog = mWaitDialog;
mService.mUiHandler.post(dialog::dismiss);
mWaitDialog = null; mWaitDialog = null;
} }