[Android] SlidingPaneLayout: remove useless code

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


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

SlidingPaneLayout: remove useless code

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

 vlc-android/src/org/videolan/vlc/widget/SlidingPaneLayout.java |    6 ------
 1 file changed, 6 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/widget/SlidingPaneLayout.java b/vlc-android/src/org/videolan/vlc/widget/SlidingPaneLayout.java
index 5793b2d..fb758b4 100644
--- a/vlc-android/src/org/videolan/vlc/widget/SlidingPaneLayout.java
+++ b/vlc-android/src/org/videolan/vlc/widget/SlidingPaneLayout.java
@@ -203,7 +203,6 @@ public class SlidingPaneLayout extends ViewGroup {
         ViewCompat.setImportantForAccessibility(this, ViewCompat.IMPORTANT_FOR_ACCESSIBILITY_YES);
 
         mDragHelper = ViewDragHelper.create(this, 0.5f, new DragHelperCallback());
-        mDragHelper.setEdgeTrackingEnabled(ViewDragHelper.EDGE_TOP);
         mDragHelper.setMinVelocity(MIN_FLING_VELOCITY * density);
     }
 
@@ -949,11 +948,6 @@ public class SlidingPaneLayout extends ViewGroup {
             // This could happen if the child has less width than its parent.
             return child.getLeft();
         }
-
-        @Override
-        public void onEdgeDragStarted(int edgeFlags, int pointerId) {
-            mDragHelper.captureChildView(mSlideableView, pointerId);
-        }
     }
 
     /**



More information about the Android mailing list