Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c7fd3874 authored by Chavi Weingarten's avatar Chavi Weingarten Committed by Automerger Merge Worker
Browse files

Merge "Don't request sync again for reparented WC" into tm-dev am: 7b0ceb4f...

Merge "Don't request sync again for reparented WC" into tm-dev am: 7b0ceb4f am: 7481dcbb am: cbf4687c

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18148567



Change-Id: I646ebc6696b67be8d339916f36d7a81fc7701cdd
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 7d517056 cbf4687c
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -3749,8 +3749,16 @@ class WindowContainer<E extends WindowContainer> extends ConfigurationContainer<
            }
            // Otherwise this is the "root" of a synced subtree, so continue on to preparation.
        }

        // This container's situation has changed so we need to restart its sync.
        // We cannot reset the sync without a chance of a deadlock since it will request a new
        // buffer from the app process. This could cause issues if the app has run out of buffers
        // since the previous buffer was already synced and is still held in a transaction.
        // Resetting syncState violates the policies outlined in BlastSyncEngine.md so for now
        // disable this when shell transitions is disabled.
        if (mTransitionController.isShellTransitionsEnabled()) {
            mSyncState = SYNC_STATE_NONE;
        }
        prepareSync();
    }