From fa129db84a2985f81eac4c51204180b00122b632 Mon Sep 17 00:00:00 2001 From: Selim Cinek Date: Tue, 1 Jul 2014 13:49:29 +0200 Subject: [PATCH] Fixed a bug on the notification appear animation On the lockscreen the dimmed state was animated before when added leading to a white flash of the background. Change-Id: I78047c2d7be2f4b85a25a1bdefacbc944f775b53 --- .../android/systemui/statusbar/stack/StackStateAnimator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackStateAnimator.java b/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackStateAnimator.java index 5efbc9973802b..494195e00f530 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackStateAnimator.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/stack/StackStateAnimator.java @@ -174,7 +174,7 @@ public class StackStateAnimator { } // start dimmed animation - child.setDimmed(viewState.dimmed, mAnimationFilter.animateDimmed); + child.setDimmed(viewState.dimmed, mAnimationFilter.animateDimmed && !wasAdded); // start dark animation child.setDark(viewState.dark, mAnimationFilter.animateDark);