diff options
author | Selim Cinek <cinek@google.com> | 2014-06-06 16:15:34 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-06-06 16:15:52 +0000 |
commit | ece9de4466a20e6fb9ce0a6699bd2fd05fe5e422 (patch) | |
tree | ab6601a77014cb0caf7e67e318559e07090cd800 /packages | |
parent | 52f9fc15a7052a32f2081d49c9b8be69a8ff7248 (diff) | |
parent | aef92efb1032b4ad2628a45f494d0e03357960ac (diff) | |
download | frameworks_base-ece9de4466a20e6fb9ce0a6699bd2fd05fe5e422.zip frameworks_base-ece9de4466a20e6fb9ce0a6699bd2fd05fe5e422.tar.gz frameworks_base-ece9de4466a20e6fb9ce0a6699bd2fd05fe5e422.tar.bz2 |
Merge "When dragging down on the lockscreen, the lowest card could jump." into lmp-preview-dev
Diffstat (limited to 'packages')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java | 15 |
1 files changed, 9 insertions, 6 deletions
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 4d86213..20caed8 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java @@ -264,6 +264,13 @@ public class NotificationStackScrollLayout extends ViewGroup : mPaddingBetweenElementsNormal; mBottomStackSlowDownHeight = mStackScrollAlgorithm.getBottomStackSlowDownLength(); updateContentHeight(); + notifyHeightChangeListener(null); + } + + private void notifyHeightChangeListener(ExpandableView view) { + if (mOnHeightChangedListener != null) { + mOnHeightChangedListener.onHeightChanged(view); + } } @Override @@ -402,9 +409,7 @@ public class NotificationStackScrollLayout extends ViewGroup mNeedsAnimation = true; } requestChildrenUpdate(); - if (mOnHeightChangedListener != null) { - mOnHeightChangedListener.onHeightChanged(null); - } + notifyHeightChangeListener(null); } } @@ -1725,9 +1730,7 @@ public class NotificationStackScrollLayout extends ViewGroup public void onHeightChanged(ExpandableView view) { updateContentHeight(); updateScrollPositionIfNecessary(); - if (mOnHeightChangedListener != null) { - mOnHeightChangedListener.onHeightChanged(view); - } + notifyHeightChangeListener(view); requestChildrenUpdate(); } |