Merge "Fix dialog exit animation" into tm-dev am: f76ef62d1a

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

Change-Id: I69a4213212fdc705a949cadb9d863f9a205fd2ff
This commit is contained in:
Rob Carr
2022-03-10 18:36:30 +00:00
committed by Automerger Merge Worker

View File

@@ -3448,6 +3448,12 @@ public final class ViewRootImpl implements ViewParent,
mReportNextDraw = false;
pendingDrawFinished();
}
// Make sure the consumer is not waiting if the view root was just made invisible.
if (mBLASTDrawConsumer != null) {
mBLASTDrawConsumer.accept(null);
mBLASTDrawConsumer = null;
}
}
}