Commit b8933e19 authored by Geoffrey Métais's avatar Geoffrey Métais

Instant replace swiped view in player animations

parent 18930fa3
......@@ -261,7 +261,7 @@ public class FlingViewGroup extends ViewGroup {
public void scrollTo(int position) {
mCurrentView = position;
final int delta = (position * getWidth()) - getScrollX();
mScroller.startScroll(getScrollX(), 0, delta, 0, Math.abs(delta));
mScroller.startScroll(getScrollX(), 0, delta, 0, 0);
invalidate();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment