summaryrefslogtreecommitdiffstats
path: root/services/java/com/android/server/am/ActivityStackSupervisor.java
diff options
context:
space:
mode:
authorCraig Mautner <cmautner@google.com>2013-04-18 10:01:00 -0700
committerCraig Mautner <cmautner@google.com>2013-04-18 10:02:38 -0700
commita9a3fb1da3d3d41f923e87d5b08b35c3e0c1f72e (patch)
tree04e386df3dfbb000010785a223916eeea0115584 /services/java/com/android/server/am/ActivityStackSupervisor.java
parent29219d963d1ec29ddea3e5814eb82c2aeaccc1ac (diff)
downloadframeworks_base-a9a3fb1da3d3d41f923e87d5b08b35c3e0c1f72e.zip
frameworks_base-a9a3fb1da3d3d41f923e87d5b08b35c3e0c1f72e.tar.gz
frameworks_base-a9a3fb1da3d3d41f923e87d5b08b35c3e0c1f72e.tar.bz2
Add transparent frame around focused stack.
- Also fix bugs when removing stack. Change-Id: I3e0e3029f512f086601add00ccf34b2fea84296d
Diffstat (limited to 'services/java/com/android/server/am/ActivityStackSupervisor.java')
-rw-r--r--services/java/com/android/server/am/ActivityStackSupervisor.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/services/java/com/android/server/am/ActivityStackSupervisor.java b/services/java/com/android/server/am/ActivityStackSupervisor.java
index 8b946e4..7a6687e 100644
--- a/services/java/com/android/server/am/ActivityStackSupervisor.java
+++ b/services/java/com/android/server/am/ActivityStackSupervisor.java
@@ -72,6 +72,8 @@ import java.util.ArrayList;
import java.util.List;
public class ActivityStackSupervisor {
+ static final boolean DEBUG_STACK = ActivityManagerService.DEBUG_STACK;
+
static final boolean DEBUG = ActivityManagerService.DEBUG || false;
static final boolean DEBUG_ADD_REMOVE = DEBUG || false;
static final boolean DEBUG_APP = DEBUG || false;
@@ -237,9 +239,11 @@ public class ActivityStackSupervisor {
void removeTask(TaskRecord task) {
final ActivityStack stack = task.stack;
if (stack.removeTask(task) && !stack.isHomeStack()) {
+ if (DEBUG_STACK) Slog.i(TAG, "removeTask: removing stack " + stack);
mStacks.remove(stack);
final int stackId = stack.mStackId;
final int nextStackId = mService.mWindowManager.removeStack(stackId);
+ // TODO: Perhaps we need to let the ActivityManager determine the next focus...
if (mFocusedStack.mStackId == stackId) {
mFocusedStack = nextStackId == HOME_STACK_ID ? null : getStack(nextStackId);
}