Unblocking surface sync if the viewroot dies before traversal can happen

Bug: 260135164
Test: Verified the code flow as the cause of bug
Change-Id: Ie168b7cb772f6ec89063a42a7b15e7d5342f5bd3
Merged-in: Ie168b7cb772f6ec89063a42a7b15e7d5342f5bd3
This commit is contained in:
Sunny Goyal
2023-01-12 11:41:29 -08:00
committed by Alex Chau
parent e8072d9849
commit b4fe2d73cf

View File

@@ -8747,6 +8747,10 @@ public final class ViewRootImpl implements ViewParent,
mAdded = false;
AnimationHandler.removeRequestor(this);
}
if (mSyncBufferCallback != null) {
mSyncBufferCallback.onBufferReady(null);
mSyncBufferCallback = null;
}
WindowManagerGlobal.getInstance().doRemoveView(this);
}