[Android] SlidingPaneLayout: increase the sensitivity of the view drag helper

Adrien Maglo git at videolan.org
Wed Jan 15 22:52:07 CET 2014


vlc-ports/android | branch: master | Adrien Maglo <magsoft at videolan.org> | Wed Jan 15 22:51:58 2014 +0100| [70f6eac66e286fd0bd3b21769d853948ed915b1c] | committer: Adrien Maglo

SlidingPaneLayout: increase the sensitivity of the view drag helper

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

 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 fb758b4..76bfdf6 100644
--- a/vlc-android/src/org/videolan/vlc/widget/SlidingPaneLayout.java
+++ b/vlc-android/src/org/videolan/vlc/widget/SlidingPaneLayout.java
@@ -202,7 +202,7 @@ public class SlidingPaneLayout extends ViewGroup {
         ViewCompat.setAccessibilityDelegate(this, new AccessibilityDelegate());
         ViewCompat.setImportantForAccessibility(this, ViewCompat.IMPORTANT_FOR_ACCESSIBILITY_YES);
 
-        mDragHelper = ViewDragHelper.create(this, 0.5f, new DragHelperCallback());
+        mDragHelper = ViewDragHelper.create(this, 1.0f, new DragHelperCallback());
         mDragHelper.setMinVelocity(MIN_FLING_VELOCITY * density);
     }
 



More information about the Android mailing list