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

Commit c840a534 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Allow activity to be reparent while allowTaskReparenting is applied"...

Merge "Allow activity to be reparent while allowTaskReparenting is applied" into tm-qpr-dev am: 3e652032 am: 9ec766e1

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19868428



Change-Id: Icaf394bf5226babf1407846b454280dcd652cb42
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents f4fc2ead 9ec766e1
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -141,15 +141,16 @@ class ResetTargetTaskHelper implements Consumer<Task>, Predicate<ActivityRecord>
            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