Merge "Fix split caused apps ANR" into sc-v2-dev

This commit is contained in:
Tony Huang
2021-08-10 05:28:43 +00:00
committed by Android (Google) Code Review

View File

@@ -9931,7 +9931,10 @@ public final class ViewRootImpl implements ViewParent,
if (!mUseMTRenderer) {
return;
}
mWindowDrawCountDown = new CountDownLatch(mWindowCallbacks.size());
// Only wait if it will report next draw.
if (mReportNextDraw) {
mWindowDrawCountDown = new CountDownLatch(mWindowCallbacks.size());
}
for (int i = mWindowCallbacks.size() - 1; i >= 0; i--) {
mWindowCallbacks.get(i).onRequestDraw(mReportNextDraw);
}