diff options
| author | 2024-07-01 03:19:18 +0000 | |
|---|---|---|
| committer | 2024-07-01 07:52:47 +0000 | |
| commit | 1050ff9e54856387249391c7a3e7083946537a0a (patch) | |
| tree | bf414ebffca1e6c34abc737297ce84e383a35e7f | |
| parent | c5002e47d6a5382821b7c893cecd6cb0c140be49 (diff) | |
Fixes activity not resumed after applying WCT
The activity is now deferred resumed while applying WCT after commit
5be6938. With that change, the op that effects the activity lifecycle
should be correctly noted.
Bug: 348504324
Test: wm presubmit
Flag: EXEMPT bugfix
Change-Id: Idc87e6898f3055e97cf0cc670ad379789d722660
| -rw-r--r-- | services/core/java/com/android/server/wm/WindowOrganizerController.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/services/core/java/com/android/server/wm/WindowOrganizerController.java b/services/core/java/com/android/server/wm/WindowOrganizerController.java index d26df7a67ad5..a49048c4307e 100644 --- a/services/core/java/com/android/server/wm/WindowOrganizerController.java +++ b/services/core/java/com/android/server/wm/WindowOrganizerController.java @@ -1105,6 +1105,7 @@ class WindowOrganizerController extends IWindowOrganizerController.Stub break; } if (activity.isVisible() || activity.isVisibleRequested()) { + effects |= TRANSACT_EFFECTS_LIFECYCLE; // Prevent the transition from being executed too early if the activity is // visible. activity.finishIfPossible("finish-activity-op", false /* oomAdj */); @@ -1122,6 +1123,7 @@ class WindowOrganizerController extends IWindowOrganizerController.Stub launchOpts.remove(WindowContainerTransaction.HierarchyOp.LAUNCH_KEY_TASK_ID); final SafeActivityOptions safeOptions = SafeActivityOptions.fromBundle(launchOpts, caller.mPid, caller.mUid); + effects |= TRANSACT_EFFECTS_LIFECYCLE; waitAsyncStart(() -> mService.mTaskSupervisor.startActivityFromRecents( caller.mPid, caller.mUid, taskId, safeOptions)); break; |