summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Jorim Jaggi <jjaggi@google.com> 2016-03-29 19:28:42 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2016-03-29 19:28:44 +0000
commitc28230cf97a63e939e295b52bfa65665722440b8 (patch)
tree37f6af572415d958831bcedf5f4ddd20bb960a85
parent021a48d50eb857aa912e5ca22ae0fff4a8b4c9dd (diff)
parent22a869f51b93242d001ffb4c5d4ab3c8ed0b5a16 (diff)
Merge "Intersect task with stack bounds for dimming" into nyc-dev
-rw-r--r--services/core/java/com/android/server/wm/Task.java10
1 files changed, 9 insertions, 1 deletions
diff --git a/services/core/java/com/android/server/wm/Task.java b/services/core/java/com/android/server/wm/Task.java
index 4e8f19e5fbfd..1f03c041b477 100644
--- a/services/core/java/com/android/server/wm/Task.java
+++ b/services/core/java/com/android/server/wm/Task.java
@@ -498,7 +498,15 @@ class Task implements DimLayer.DimLayerUser {
return;
}
- out.set(mBounds);
+ if (!mFullscreen) {
+ // When minimizing the docked stack when going home, we don't adjust the task bounds
+ // so we need to intersect the task bounds with the stack bounds here.
+ mStack.getBounds(mTmpRect);
+ mTmpRect.intersect(mBounds);
+ out.set(mTmpRect);
+ } else {
+ out.set(mBounds);
+ }
return;
}