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

Commit 5e4e1942 authored by Patrick Williams's avatar Patrick Williams Committed by Automerger Merge Worker
Browse files

Merge "Copy transaction in applyTransactionOnDraw" into udc-dev am: 33b47f6b

parents d1bb27e9 33b47f6b
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -11365,9 +11365,13 @@ public final class ViewRootImpl implements ViewParent,
        if (mRemoved || !isHardwareEnabled()) {
            t.apply();
        } else {
            // Copy and clear the passed in transaction for thread safety. The new transaction is
            // accessed on the render thread.
            var localTransaction = new Transaction();
            localTransaction.merge(t);
            mHasPendingTransactions = true;
            registerRtFrameCallback(frame -> {
                mergeWithNextTransaction(t, frame);
                mergeWithNextTransaction(localTransaction, frame);
            });
        }
        return true;