[Android] SlidingPaneLayout: reduce the precision to determine the state change

Adrien Maglo git at videolan.org
Fri Feb 21 15:04:10 CET 2014


vlc-ports/android | branch: master | Adrien Maglo <magsoft at videolan.org> | Fri Feb 21 15:03:59 2014 +0100| [777fb7121138c0590aeb21f346a626556ec05d2a] | committer: Adrien Maglo

SlidingPaneLayout: reduce the precision to determine the state change

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=777fb7121138c0590aeb21f346a626556ec05d2a
---

 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 ec4fe7a..886cffa 100644
--- a/vlc-android/src/org/videolan/vlc/widget/SlidingPaneLayout.java
+++ b/vlc-android/src/org/videolan/vlc/widget/SlidingPaneLayout.java
@@ -868,7 +868,7 @@ public class SlidingPaneLayout extends ViewGroup {
                             mPanelSlideListener.onPanelClosed();
                     }
                 } else if (Math.abs(mSlideOffset - (1 - (float)mOverhangSize / mSlideRange))
-                           <= 0.0001) {
+                           <= 0.001) {
                     if (mState != STATE_OPENED) {
                         mState = STATE_OPENED;
                         if (mPanelSlideListener != null)



More information about the Android mailing list