diff options
author | Craig Mautner <cmautner@google.com> | 2013-04-03 10:53:23 -0700 |
---|---|---|
committer | Craig Mautner <cmautner@google.com> | 2013-04-06 19:01:32 -0700 |
commit | 9e4f28cfa157fff89e42859edc9cce546508491f (patch) | |
tree | 52bdcfe7c5a7e823d7165b681403a15ee7c00e3a /services/java/com/android/server/wm/DisplayContent.java | |
parent | 99db7379d035c66ba8ed841c948b4fa3807c88fa (diff) | |
download | frameworks_base-9e4f28cfa157fff89e42859edc9cce546508491f.zip frameworks_base-9e4f28cfa157fff89e42859edc9cce546508491f.tar.gz frameworks_base-9e4f28cfa157fff89e42859edc9cce546508491f.tar.bz2 |
Separate stacks into Home and others.
Change-Id: I9434ee6cd9e8a8baf24d4e4ee5a15e99cf11f227
Diffstat (limited to 'services/java/com/android/server/wm/DisplayContent.java')
-rw-r--r-- | services/java/com/android/server/wm/DisplayContent.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/services/java/com/android/server/wm/DisplayContent.java b/services/java/com/android/server/wm/DisplayContent.java index bcefc41..61aa0de 100644 --- a/services/java/com/android/server/wm/DisplayContent.java +++ b/services/java/com/android/server/wm/DisplayContent.java @@ -20,6 +20,8 @@ import android.graphics.Rect; import android.view.Display; import android.view.DisplayInfo; +import static com.android.server.am.ActivityStackSupervisor.HOME_STACK_ID; + import java.io.PrintWriter; import java.util.ArrayList; @@ -193,6 +195,15 @@ class DisplayContent { return false; } + void removeStackBox(StackBox box) { + final TaskStack stack = box.mStack; + if (stack != null && stack.mStackId == HOME_STACK_ID) { + // Never delete the home stack, even if it is empty. + return; + } + mStackBoxes.remove(box); + } + /** * Reorder a StackBox within mStackBox. The StackBox to reorder is the one containing the * specified TaskStack. |