[Android] SlidingPaneLayout: fix the slide offset value returned to the callback
Adrien Maglo
git at videolan.org
Wed Jan 15 17:05:47 CET 2014
vlc-ports/android | branch: master | Adrien Maglo <magsoft at videolan.org> | Wed Jan 15 17:05:41 2014 +0100| [a4dc5d54323d8918e97ee54b8bcadd7dedaece3f] | committer: Adrien Maglo
SlidingPaneLayout: fix the slide offset value returned to the callback
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=a4dc5d54323d8918e97ee54b8bcadd7dedaece3f
---
vlc-android/src/org/videolan/vlc/widget/SlidingPaneLayout.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vlc-android/src/org/videolan/vlc/widget/SlidingPaneLayout.java b/vlc-android/src/org/videolan/vlc/widget/SlidingPaneLayout.java
index 54bb050..5793b2d 100644
--- a/vlc-android/src/org/videolan/vlc/widget/SlidingPaneLayout.java
+++ b/vlc-android/src/org/videolan/vlc/widget/SlidingPaneLayout.java
@@ -907,7 +907,7 @@ public class SlidingPaneLayout extends ViewGroup {
}
}
else if (mPanelSlideListener != null)
- mPanelSlideListener.onPanelSlide((float)mSlideOffset / mSlideRange);
+ mPanelSlideListener.onPanelSlide(mSlideOffset);
}
@Override
More information about the Android
mailing list