File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -2645,7 +2645,7 @@ public void run() {
26452645 mScrollDuration );
26462646
26472647 mLastSeenPos = lastPos ;
2648- if (lastPos != mTargetPos ) {
2648+ if (lastPos < mTargetPos ) {
26492649 post (this );
26502650 }
26512651 break ;
@@ -2671,7 +2671,7 @@ public void run() {
26712671 final int nextViewHeight = nextView .getHeight ();
26722672 final int nextViewTop = nextView .getTop ();
26732673 final int extraScroll = mExtraScroll ;
2674- if (nextPos != mBoundPos ) {
2674+ if (nextPos < mBoundPos ) {
26752675 smoothScrollBy (Math .max (0 , nextViewHeight + nextViewTop - extraScroll ),
26762676 mScrollDuration );
26772677
@@ -2704,7 +2704,7 @@ public void run() {
27042704
27052705 mLastSeenPos = firstPos ;
27062706
2707- if (firstPos != mTargetPos ) {
2707+ if (firstPos > mTargetPos ) {
27082708 post (this );
27092709 }
27102710 break ;
@@ -2728,7 +2728,7 @@ public void run() {
27282728 final int lastViewTop = lastView .getTop ();
27292729 final int lastViewPixelsShowing = listHeight - lastViewTop ;
27302730 mLastSeenPos = lastPos ;
2731- if (lastPos != mBoundPos ) {
2731+ if (lastPos > mBoundPos ) {
27322732 smoothScrollBy (-(lastViewPixelsShowing - mExtraScroll ), mScrollDuration );
27332733 post (this );
27342734 } else {
You can’t perform that action at this time.
0 commit comments