Merge "Prevent deadlock for clearWaitingDialog" into tm-dev am: e880b639cf

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18030448

Change-Id: Id4703ffd794614737bcf523c31ced948b93a90a5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Arthur Hung
2022-05-04 06:33:54 +00:00
committed by Automerger Merge Worker

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;
} }