Merge "Fix bug 2562240 and clean up scrollbar behavior" into froyo

This commit is contained in:
Adam Powell
2010-03-31 20:11:33 -07:00
committed by Android (Google) Code Review
3 changed files with 4 additions and 9 deletions

View File

@ -2483,16 +2483,9 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te
delta = Math.max(-(getHeight() - mPaddingBottom - mPaddingTop - 1), delta);
}
// Check to see if we have bumped into the scroll limit
View motionView = getChildAt(mMotionPosition - mFirstPosition);
int oldTop = 0;
if (motionView != null) {
oldTop = motionView.getTop();
}
final boolean atEnd = trackMotionScroll(delta, delta);
trackMotionScroll(delta, delta);
if (more) {
if (more && !atEnd) {
invalidate();
mLastFlingY = y;
post(this);

View File

@ -1022,6 +1022,7 @@ public class HorizontalScrollView extends FrameLayout {
onScrollChanged(x, y, oldX, oldY);
}
}
awakenScrollBars();
// Keep on drawing until the animation has finished.
postInvalidate();

View File

@ -1023,6 +1023,7 @@ public class ScrollView extends FrameLayout {
onScrollChanged(x, y, oldX, oldY);
}
}
awakenScrollBars();
// Keep on drawing until the animation has finished.
postInvalidate();