From d393d5c1e51e61b7ac61d3415586b696ee5c5f2a Mon Sep 17 00:00:00 2001 From: Selim Cinek Date: Wed, 3 Aug 2016 16:18:12 -0700 Subject: [PATCH] Fixed the transition of the background of the notifications When there's no notification anymore, the background could animate weirdly as it still factored in the stack translation, which doesn't make much sense. This lead to weird transitions on the lockscreen. Change-Id: I0f17dc5f667106dcad54702be1880a689df24764 Fixes: 30341287 --- .../systemui/statusbar/stack/NotificationStackScrollLayout.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java b/packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java index bb0a5dcbdcbf8..f72e50beec108 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java @@ -2009,7 +2009,7 @@ public class NotificationStackScrollLayout extends ViewGroup bottom = Math.min(bottom, getHeight()); } } else { - top = (int) (mTopPadding + mStackTranslation); + top = mTopPadding; bottom = top; } if (mPhoneStatusBar.getBarState() != StatusBarState.KEYGUARD) {