From: Selim Cinek Date: Wed, 3 Aug 2016 23:18:12 +0000 (-0700) Subject: Fixed the transition of the background of the notifications X-Git-Tag: android-x86-7.1-r1~2177^2~4 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=d393d5c1e51e61b7ac61d3415586b696ee5c5f2a;p=android-x86%2Fframeworks-base.git 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 --- 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 bb0a5dcbdcbf..f72e50beec10 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) {