From 32a59fd30266561e7312d47aac37d02ab5f5be02 Mon Sep 17 00:00:00 2001 From: Selim Cinek Date: Wed, 10 Jun 2015 13:54:42 -0700 Subject: [PATCH] Fixed a bug where we might get stuck in a fully expanded statusbar Bug: 21704050 Change-Id: Ib024a350b9d86f89480aaa9ea279cab81f51524b --- .../statusbar/stack/NotificationStackScrollLayout.java | 5 +++++ 1 file changed, 5 insertions(+) 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 d8f6bcd17a2a7..c623305ab5b04 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java @@ -2291,6 +2291,10 @@ public class NotificationStackScrollLayout extends ViewGroup public void onChildAnimationFinished() { requestChildrenUpdate(); + runAnimationFinishedRunnables(); + } + + private void runAnimationFinishedRunnables() { for (Runnable runnable : mAnimationFinishedRunnables) { runnable.run(); } @@ -2348,6 +2352,7 @@ public class NotificationStackScrollLayout extends ViewGroup if (mListener != null) { mListener.onChildLocationsChanged(this); } + runAnimationFinishedRunnables(); } public void setSpeedBumpView(SpeedBumpView speedBumpView) {