Merge "Prevent extra animation when scrolling the recycler view." into ub-launcher3-burnaby
This commit is contained in:
@@ -170,10 +170,12 @@ public class BaseRecyclerViewFastScrollBar {
|
|||||||
break;
|
break;
|
||||||
case MotionEvent.ACTION_UP:
|
case MotionEvent.ACTION_UP:
|
||||||
case MotionEvent.ACTION_CANCEL:
|
case MotionEvent.ACTION_CANCEL:
|
||||||
mIsDragging = false;
|
|
||||||
mTouchOffset = 0;
|
mTouchOffset = 0;
|
||||||
mPopup.animateVisibility(false);
|
if (mIsDragging) {
|
||||||
animateScrollbar(false);
|
mIsDragging = false;
|
||||||
|
mPopup.animateVisibility(false);
|
||||||
|
animateScrollbar(false);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user