When dragging down on the lockscreen, the lowest card could jump.

Bug: 15203895
Change-Id: I1a0a5a236490f12dba93700685be049d723b5339
This commit is contained in:
Selim Cinek
2014-06-06 18:06:04 +02:00
parent adf2ea2bfd
commit aef92efb10

View File

@@ -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();
}