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

Commit 0fb2fcc7 authored by Riddle Hsu's avatar Riddle Hsu Committed by Android (Google) Code Review
Browse files

Merge "Avoid potential NPE if the restore-below task is not collected" into tm-qpr-dev

parents b82a6d8f 828d7ca8
Loading
Loading
Loading
Loading
+10 −7
Original line number Diff line number Diff line
@@ -1660,6 +1660,7 @@ class ActivityStarter {
        transitionController.collect(r);
        try {
            mService.deferWindowLayout();
            try {
                Trace.traceBegin(Trace.TRACE_TAG_WINDOW_MANAGER, "startActivityInner");
                result = startActivityInner(r, sourceRecord, voiceSession, voiceInteractor,
                        startFlags, doResume, options, inTask, inTaskFragment, restrictedBgActivity,
@@ -1668,6 +1669,8 @@ class ActivityStarter {
                Trace.traceEnd(Trace.TRACE_TAG_WINDOW_MANAGER);
                startedActivityRootTask = handleStartResult(r, options, result, newTransition,
                        remoteTransition);
            }
        } finally {
            mService.continueWindowLayout();
        }
        postStartActivityProcessing(r, result, startedActivityRootTask);
+3 −1
Original line number Diff line number Diff line
@@ -229,8 +229,10 @@ class Transition extends Binder implements BLASTSyncEngine.TransactionReadyListe

        if (restoreBelow != null) {
            final ChangeInfo info = mChanges.get(restoreBelow);
            if (info != null) {
                info.mFlags |= ChangeInfo.FLAG_ABOVE_TRANSIENT_LAUNCH;
            }
        }
        ProtoLog.v(ProtoLogGroup.WM_DEBUG_WINDOW_TRANSITIONS, "Transition %d: Set %s as "
                + "transient-launch", mSyncId, activity);
    }