Merge "Prevent extra animation when scrolling the recycler view." into ub-launcher3-burnaby

This commit is contained in:
Winson Chung 2015-06-25 00:12:07 +00:00 committed by Android (Google) Code Review
commit 9063bfaad0
1 changed files with 5 additions and 3 deletions

View File

@ -170,10 +170,12 @@ public class BaseRecyclerViewFastScrollBar {
break;
case MotionEvent.ACTION_UP:
case MotionEvent.ACTION_CANCEL:
mIsDragging = false;
mTouchOffset = 0;
mPopup.animateVisibility(false);
animateScrollbar(false);
if (mIsDragging) {
mIsDragging = false;
mPopup.animateVisibility(false);
animateScrollbar(false);
}
break;
}
}