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

Commit 4283d657 authored by Chavi Weingarten's avatar Chavi Weingarten Committed by Android (Google) Code Review
Browse files

Merge "Don't lose transaction callbacks that are still in the drawing state."

parents fd4edbf3 47dbd69f
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1034,6 +1034,12 @@ uint32_t Layer::doTransaction(uint32_t flags) {
        mCurrentState.inputInfoChanged = false;
    }

    // Add the callbacks from the drawing state into the current state. This is so when the current
    // state gets copied to drawing, we don't lose the callback handles that are still in drawing.
    for (auto& handle : s.callbackHandles) {
        c.callbackHandles.push_back(handle);
    }

    // Commit the transaction
    commitTransaction(c);
    mPendingStatesSnapshot = mPendingStates;