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

Commit df7c1e93 authored by Louis Chang's avatar Louis Chang
Browse files

Ensure the top-resumed-activity is updated after WCT applied

The Recents activity was resumed while applying WCT, and the
top-resumed-activity change was not reported after commit 171d4adb.

Bug: 376184135
Test: Swipe up to Recents
Flag: EXEMPT bugfix
Change-Id: I5ed3885b47b7f1f9fe003011ea265942251279a9
parent 62ced8cd
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -813,6 +813,10 @@ class WindowOrganizerController extends IWindowOrganizerController.Stub
            mService.mTaskSupervisor.setDeferRootVisibilityUpdate(false /* deferUpdate */);
            if (deferResume) {
                mService.mTaskSupervisor.endDeferResume();
                // Transient launching the Recents via HIERARCHY_OP_TYPE_PENDING_INTENT directly
                // resume the Recents activity with no TRANSACT_EFFECTS_LIFECYCLE. Explicitly
                // checks if the top resumed activity should be updated after defer-resume ended.
                mService.mTaskSupervisor.updateTopResumedActivityIfNeeded("endWCT");
            }
            mService.continueWindowLayout();
        }