Merge "Don't wait for windows which are goneForLayout"
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user