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
This commit is contained in:
Sunny Goyal
2023-01-12 11:41:29 -08:00
committed by Chavi Weingarten
parent 0da4f48c2a
commit 2ff9d23025

View File

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