Loading core/java/android/widget/AbsListView.java +10 −1 Original line number Diff line number Diff line Loading @@ -2364,9 +2364,18 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te public void draw(Canvas canvas) { super.draw(canvas); if (mFastScroller != null) { final int scrollY = mScrollY; if (scrollY != 0) { // Pin the fast scroll thumb to the top/bottom during overscroll. int restoreCount = canvas.save(); canvas.translate(0, (float) scrollY); mFastScroller.draw(canvas); canvas.restoreToCount(restoreCount); } else { mFastScroller.draw(canvas); } } } @Override public boolean onInterceptTouchEvent(MotionEvent ev) { Loading Loading
core/java/android/widget/AbsListView.java +10 −1 Original line number Diff line number Diff line Loading @@ -2364,9 +2364,18 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te public void draw(Canvas canvas) { super.draw(canvas); if (mFastScroller != null) { final int scrollY = mScrollY; if (scrollY != 0) { // Pin the fast scroll thumb to the top/bottom during overscroll. int restoreCount = canvas.save(); canvas.translate(0, (float) scrollY); mFastScroller.draw(canvas); canvas.restoreToCount(restoreCount); } else { mFastScroller.draw(canvas); } } } @Override public boolean onInterceptTouchEvent(MotionEvent ev) { Loading