[Android] Prevent playlist item reorder to trigger the long tap action

Nicolas Pomepuy git at videolan.org
Tue Apr 2 16:59:53 CEST 2019


vlc-android | branch: master | Nicolas Pomepuy <nicolas.pomepuy at gmail.com> | Fri Feb 15 15:14:31 2019 +0100| [595a155bf1aef12d0d1d8398fab1237140cada26] | committer: Geoffrey Métais

Prevent playlist item reorder to trigger the long tap action

> https://code.videolan.org/videolan/vlc-android/commit/595a155bf1aef12d0d1d8398fab1237140cada26
---

 vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserAdapter.java | 1 +
 1 file changed, 1 insertion(+)

diff --git a/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserAdapter.java b/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserAdapter.java
index f4ebe8bd5..2f3756439 100644
--- a/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserAdapter.java
+++ b/vlc-android/src/org/videolan/vlc/gui/audio/AudioBrowserAdapter.java
@@ -232,6 +232,7 @@ public class AudioBrowserAdapter extends PagedListAdapter<MediaLibraryItem, Audi
                     }
                     if (MotionEventCompat.getActionMasked(event) == MotionEvent.ACTION_DOWN) {
                         mIEventsHandler.onStartDrag(MediaItemViewHolder.this);
+                        return true;
                     }
                     return false;
                 }



More information about the Android mailing list