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

Commit a10767e3 authored by Evan Rosky's avatar Evan Rosky Committed by Android (Google) Code Review
Browse files

Merge "Support playNow on queued SLEEP transits" into main

parents 08742fd1 05f0664b
Loading
Loading
Loading
Loading
+14 −6
Original line number Diff line number Diff line
@@ -1067,6 +1067,13 @@ class TransitionController {
            // legacy sync
            mSyncEngine.startSyncSet(queued.mLegacySync);
        }
        if (queued.mTransition != null
                && queued.mTransition.mType == WindowManager.TRANSIT_SLEEP) {
            // SLEEP transitions are special in that they don't collect anything (in fact if they
            // do collect things it can cause problems). So, we need to run it's onCollectStarted
            // immediately.
            queued.mOnStartCollect.onCollectStarted(true /* deferred */);
        } else {
            // Post this so that the now-playing transition logic isn't interrupted.
            mAtm.mH.post(() -> {
                synchronized (mAtm.mGlobalLock) {
@@ -1074,6 +1081,7 @@ class TransitionController {
                }
            });
        }
    }

    void moveToPlaying(Transition transition) {
        if (transition == mCollectingTransition) {