Merge "Don't wait for windows which are goneForLayout"

This commit is contained in:
Evan Rosky
2020-09-16 01:39:42 +00:00
committed by Android (Google) Code Review

View File

@@ -5863,6 +5863,10 @@ class WindowState extends WindowContainer<WindowState> implements WindowManagerP
@Override
boolean prepareForSync(BLASTSyncEngine.TransactionReadyListener waitingListener,
int waitingId) {
// If the window is goneForLayout, relayout won't be called so we'd just wait forever.
if (isGoneForLayout()) {
return false;
}
boolean willSync = setPendingListener(waitingListener, waitingId);
if (!willSync) {
return false;