Loading core/java/android/widget/AbsListView.java +4 −4 Original line number Original line Diff line number Diff line Loading @@ -2645,7 +2645,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te mScrollDuration); mScrollDuration); mLastSeenPos = lastPos; mLastSeenPos = lastPos; if (lastPos != mTargetPos) { if (lastPos < mTargetPos) { post(this); post(this); } } break; break; Loading @@ -2671,7 +2671,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te final int nextViewHeight = nextView.getHeight(); final int nextViewHeight = nextView.getHeight(); final int nextViewTop = nextView.getTop(); final int nextViewTop = nextView.getTop(); final int extraScroll = mExtraScroll; final int extraScroll = mExtraScroll; if (nextPos != mBoundPos) { if (nextPos < mBoundPos) { smoothScrollBy(Math.max(0, nextViewHeight + nextViewTop - extraScroll), smoothScrollBy(Math.max(0, nextViewHeight + nextViewTop - extraScroll), mScrollDuration); mScrollDuration); Loading Loading @@ -2704,7 +2704,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te mLastSeenPos = firstPos; mLastSeenPos = firstPos; if (firstPos != mTargetPos) { if (firstPos > mTargetPos) { post(this); post(this); } } break; break; Loading @@ -2728,7 +2728,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te final int lastViewTop = lastView.getTop(); final int lastViewTop = lastView.getTop(); final int lastViewPixelsShowing = listHeight - lastViewTop; final int lastViewPixelsShowing = listHeight - lastViewTop; mLastSeenPos = lastPos; mLastSeenPos = lastPos; if (lastPos != mBoundPos) { if (lastPos > mBoundPos) { smoothScrollBy(-(lastViewPixelsShowing - mExtraScroll), mScrollDuration); smoothScrollBy(-(lastViewPixelsShowing - mExtraScroll), mScrollDuration); post(this); post(this); } else { } else { Loading Loading
core/java/android/widget/AbsListView.java +4 −4 Original line number Original line Diff line number Diff line Loading @@ -2645,7 +2645,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te mScrollDuration); mScrollDuration); mLastSeenPos = lastPos; mLastSeenPos = lastPos; if (lastPos != mTargetPos) { if (lastPos < mTargetPos) { post(this); post(this); } } break; break; Loading @@ -2671,7 +2671,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te final int nextViewHeight = nextView.getHeight(); final int nextViewHeight = nextView.getHeight(); final int nextViewTop = nextView.getTop(); final int nextViewTop = nextView.getTop(); final int extraScroll = mExtraScroll; final int extraScroll = mExtraScroll; if (nextPos != mBoundPos) { if (nextPos < mBoundPos) { smoothScrollBy(Math.max(0, nextViewHeight + nextViewTop - extraScroll), smoothScrollBy(Math.max(0, nextViewHeight + nextViewTop - extraScroll), mScrollDuration); mScrollDuration); Loading Loading @@ -2704,7 +2704,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te mLastSeenPos = firstPos; mLastSeenPos = firstPos; if (firstPos != mTargetPos) { if (firstPos > mTargetPos) { post(this); post(this); } } break; break; Loading @@ -2728,7 +2728,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te final int lastViewTop = lastView.getTop(); final int lastViewTop = lastView.getTop(); final int lastViewPixelsShowing = listHeight - lastViewTop; final int lastViewPixelsShowing = listHeight - lastViewTop; mLastSeenPos = lastPos; mLastSeenPos = lastPos; if (lastPos != mBoundPos) { if (lastPos > mBoundPos) { smoothScrollBy(-(lastViewPixelsShowing - mExtraScroll), mScrollDuration); smoothScrollBy(-(lastViewPixelsShowing - mExtraScroll), mScrollDuration); post(this); post(this); } else { } else { Loading