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

Commit b76564ed authored by Chris Li's avatar Chris Li
Browse files

Hold lock when start pending transaction

Fix: 217777115
Test: pass existing
Change-Id: I0bafa2b92dc888c684d0ae8b4b4c4cb065d14bd3
parent 68b0ca05
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -1146,7 +1146,11 @@ class WindowOrganizerController extends IWindowOrganizerController.Stub
        final PendingTransaction pt = mPendingTransactions.remove(0);
        pt.startSync();
        // Post this so that the now-playing transition setup isn't interrupted.
        mService.mH.post(pt::startTransaction);
        mService.mH.post(() -> {
            synchronized (mGlobalLock) {
                pt.startTransaction();
            }
        });
    }

    @Override