summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCraig Mautner <cmautner@google.com>2014-01-10 08:40:23 -0800
committerCraig Mautner <cmautner@google.com>2014-01-10 08:40:23 -0800
commitfefeef8249e898d2d450da21d0edda49b88be7ce (patch)
tree87cd2c37a28bd6987af6e3821678d912b1ef076a
parentb6d9eb875a0bf1bb655a90c88457689342eb0991 (diff)
downloadframeworks_base-fefeef8249e898d2d450da21d0edda49b88be7ce.zip
frameworks_base-fefeef8249e898d2d450da21d0edda49b88be7ce.tar.gz
frameworks_base-fefeef8249e898d2d450da21d0edda49b88be7ce.tar.bz2
Call moveHomeStack before moving any stack.
Order matters, otherwise mFocusedStack and mLastStack aren't updated correctly. Fixes bug 12478856. Change-Id: I12e4334678bb3af49d1ff26c4003def3e8d987c2
-rw-r--r--services/core/java/com/android/server/am/ActivityStack.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/services/core/java/com/android/server/am/ActivityStack.java b/services/core/java/com/android/server/am/ActivityStack.java
index adba14d..5cb0b31 100644
--- a/services/core/java/com/android/server/am/ActivityStack.java
+++ b/services/core/java/com/android/server/am/ActivityStack.java
@@ -456,11 +456,11 @@ final class ActivityStack {
final void moveToFront() {
if (isAttached()) {
- mStacks.remove(this);
- mStacks.add(this);
if (isOnHomeDisplay()) {
mStackSupervisor.moveHomeStack(isHomeStack());
}
+ mStacks.remove(this);
+ mStacks.add(this);
}
}