From 1ad99155b37c0cb0b7d95f084a2bff0cbfc8e12d Mon Sep 17 00:00:00 2001 From: Craig Mautner Date: Thu, 28 Aug 2014 15:47:13 -0700 Subject: [PATCH] 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 --- .../core/java/com/android/server/wm/AppWindowAnimator.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/services/core/java/com/android/server/wm/AppWindowAnimator.java b/services/core/java/com/android/server/wm/AppWindowAnimator.java index ef742057f1b86..69c914486f35f 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() {