Merge "Fix dialog exit animation" into sc-v2-dev

This commit is contained in:
Jordan Demeulenaere
2022-03-10 21:59:15 +00:00
committed by Android (Google) Code Review

View File

@@ -3390,6 +3390,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;
}
}
}