diff options
| author | 2022-09-26 01:25:55 +0000 | |
|---|---|---|
| committer | 2022-09-26 01:25:55 +0000 | |
| commit | 35b4aafcc999ac1d49ada184c4d81b8abffd5dfc (patch) | |
| tree | 39fcb580f3fad7e5a6794701969127630ad7e5ae | |
| parent | 904d80fc0630d6d7121b82c7881123fd61924613 (diff) | |
| parent | eb63c835cdced7aee593e6d961055a79b6c6ddd2 (diff) | |
Merge changes from topic "presubmit-am-e095dcb8dc634f1bbc080231db8e0ba1" into sc-mainline-prod
* changes:
[automerge] [RESTRICT AUTOMERGE] Allow activity to be reparent while allowTaskReparenting is applied 2p: 7af50c4d5f
[RESTRICT AUTOMERGE] Allow activity to be reparent while allowTaskReparenting is applied
| -rw-r--r-- | services/core/java/com/android/server/wm/ResetTargetTaskHelper.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/services/core/java/com/android/server/wm/ResetTargetTaskHelper.java b/services/core/java/com/android/server/wm/ResetTargetTaskHelper.java index 2626b87b93e5..7e479679e1a2 100644 --- a/services/core/java/com/android/server/wm/ResetTargetTaskHelper.java +++ b/services/core/java/com/android/server/wm/ResetTargetTaskHelper.java @@ -146,15 +146,16 @@ class ResetTargetTaskHelper { return false; } else { - mResultActivities.add(r); if (r.resultTo != null) { // If this activity is sending a reply to a previous activity, we can't do // anything with it now until we reach the start of the reply chain. // NOTE: that we are assuming the result is always to the previous activity, // which is almost always the case but we really shouldn't count on. + mResultActivities.add(r); return false; } else if (mTargetTaskFound && allowTaskReparenting && mTargetTask.affinity != null && mTargetTask.affinity.equals(r.taskAffinity)) { + mResultActivities.add(r); // This activity has an affinity for our task. Either remove it if we are // clearing or move it over to our task. Note that we currently punt on the case // where we are resetting a task that is not at the top but who has activities |