[Android] Instant replace swiped view in player animations
Geoffrey Métais
git at videolan.org
Tue Mar 31 18:29:05 CEST 2015
vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue Mar 31 18:28:05 2015 +0200| [b8933e198ce2bac0be6e06781e2b0c4d502b2dd8] | committer: Geoffrey Métais
Instant replace swiped view in player animations
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=b8933e198ce2bac0be6e06781e2b0c4d502b2dd8
---
vlc-android/src/org/videolan/vlc/widget/FlingViewGroup.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vlc-android/src/org/videolan/vlc/widget/FlingViewGroup.java b/vlc-android/src/org/videolan/vlc/widget/FlingViewGroup.java
index c254c5a..243dea3 100644
--- a/vlc-android/src/org/videolan/vlc/widget/FlingViewGroup.java
+++ b/vlc-android/src/org/videolan/vlc/widget/FlingViewGroup.java
@@ -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();
}
More information about the Android
mailing list