summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Craig Mautner <cmautner@google.com> 2014-08-28 15:47:13 -0700
committer Craig Mautner <cmautner@google.com> 2014-08-28 15:47:13 -0700
commit1ad99155b37c0cb0b7d95f084a2bff0cbfc8e12d (patch)
treef4d93499ba79c2da039f30a6dcdf648c223d8408
parenteee0ea201f078beb5dd9259d98cd614c92a1bcb6 (diff)
Don't use anim background for translucent windows
When a translucent window transitions in or out the activity behind it does not animate. In such cases if a background color is specified for the translucent window animation then the background will obscure the static window behind the animating window for the duration of the animation. This change eliminates the background color for translucent windows. Fixes bug 16219830. Change-Id: I5834595afa5beae95ac2fcf8f2bad1a59271e08a
-rw-r--r--services/core/java/com/android/server/wm/AppWindowAnimator.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/services/core/java/com/android/server/wm/AppWindowAnimator.java b/services/core/java/com/android/server/wm/AppWindowAnimator.java
index ef742057f1b8..69c914486f35 100644
--- a/services/core/java/com/android/server/wm/AppWindowAnimator.java
+++ b/services/core/java/com/android/server/wm/AppWindowAnimator.java
@@ -114,6 +114,10 @@ public class AppWindowAnimator {
transformation.clear();
transformation.setAlpha(mAppToken.isVisible() ? 1 : 0);
hasTransformation = true;
+
+ if (!mAppToken.appFullscreen) {
+ anim.setBackgroundColor(0);
+ }
}
public void setDummyAnimation() {