OSDN Git Service

Don't move stack with task for moveTaskToFront.
authorCraig Mautner <cmautner@google.com>
Mon, 24 Jun 2013 04:24:13 +0000 (21:24 -0700)
committerCraig Mautner <cmautner@google.com>
Mon, 24 Jun 2013 04:28:10 +0000 (21:28 -0700)
Earlier CL, ag/321609, was overly aggressive. It should only have kept
the stack from moving when moveTaskToStack() was called. Instead the
change was applied to moveTaskToFront() as well. In order to remain
consistent with earlier behavior of moveTaskToFront() the stack
containing the task must move to the front as well. This movement
launches the activity at the top of the task. Without the stack
movement the activity never gets launched causing bug 9498455.

Fixes bug 9498455.

Change-Id: I2cb9119c23a226f7d211851df9e49f10f702b3ef

services/java/com/android/server/am/ActivityStack.java

index 2d7a171..5e6bdb1 100644 (file)
@@ -2857,6 +2857,8 @@ final class ActivityStack {
             return;
         }
 
+        mStackSupervisor.moveHomeStack(isHomeStack());
+
         // Shift all activities with this task up to the top
         // of the stack, keeping them in the same internal order.
         mTaskHistory.remove(tr);