summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Filip Gruszczynski <gruszczy@google.com> 2015-06-09 23:10:32 +0000
committer Android Git Automerger <android-git-automerger@android.com> 2015-06-09 23:10:32 +0000
commit2bad67b16fbfbfa56081bfbd6a43c0b1793ce8a3 (patch)
tree1db605202b3880eab18bcfab67f66af50ac37c83
parentd648975f514dfbe694a905fabc554ed267b1bfb3 (diff)
parent6974f22d1148f0140b4abc76cc58e6bd6ad7842a (diff)
am 6974f22d: am 47e53319: Revert "Recompute focus stack if cleared while starting an activity."
* commit '6974f22d1148f0140b4abc76cc58e6bd6ad7842a': Revert "Recompute focus stack if cleared while starting an activity."
-rw-r--r--services/core/java/com/android/server/am/ActivityStackSupervisor.java21
1 files changed, 7 insertions, 14 deletions
diff --git a/services/core/java/com/android/server/am/ActivityStackSupervisor.java b/services/core/java/com/android/server/am/ActivityStackSupervisor.java
index 23e62e22eee1..577a4f94a70a 100644
--- a/services/core/java/com/android/server/am/ActivityStackSupervisor.java
+++ b/services/core/java/com/android/server/am/ActivityStackSupervisor.java
@@ -2019,22 +2019,15 @@ public final class ActivityStackSupervisor implements DisplayListener {
r, top.task);
top.deliverNewIntentLocked(callingUid, r.intent, r.launchedFromPackage);
} else {
- // A special case: we need to start the activity because it is not
- // currently running, and the caller has asked to clear the current
- // task to have this activity at the top.
+ // A special case: we need to
+ // start the activity because it is not currently
+ // running, and the caller has asked to clear the
+ // current task to have this activity at the top.
addingToTask = true;
- // Now pretend like this activity is being started by the top of its
- // task, so it is put in the right place.
+ // Now pretend like this activity is being started
+ // by the top of its task, so it is put in the
+ // right place.
sourceRecord = intentActivity;
- TaskRecord task = sourceRecord.task;
- if (task != null && task.stack == null) {
- // Target stack got cleared when we all activities were removed
- // above. Go ahead and reset it.
- targetStack = computeStackFocus(sourceRecord, false /* newTask */);
- targetStack.addTask(
- task, !launchTaskBehind /* toTop */, false /* moving */);
- }
-
}
} else if (r.realActivity.equals(intentActivity.task.realActivity)) {
// In this case the top activity on the task is the