[Android] Fix video player playlist drag and drop regression

Nicolas Pomepuy git at videolan.org
Mon Sep 23 16:10:12 CEST 2019


vlc-android | branch: master | Nicolas Pomepuy <nicolas.pomepuy at gmail.com> | Mon Sep 23 14:37:57 2019 +0200| [45eac0ba335043b432f24790516670d745c471e4] | committer: Geoffrey Métais

Fix video player playlist drag and drop regression

Fixes #1045

> https://code.videolan.org/videolan/vlc-android/commit/45eac0ba335043b432f24790516670d745c471e4
---

 vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.kt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.kt b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.kt
index 89686ae44..72399cace 100644
--- a/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.kt
+++ b/vlc-android/src/org/videolan/vlc/gui/video/VideoPlayerActivity.kt
@@ -811,7 +811,7 @@ open class VideoPlayerActivity : AppCompatActivity(), IPlaybackSettingsControlle
             hudRightBinding.playlistToggle.setOnClickListener(this at VideoPlayerActivity)
             closeButton.setOnClickListener { togglePlaylist() }
 
-            val callback = SwipeDragItemTouchHelperCallback(playlistAdapter)
+            val callback = SwipeDragItemTouchHelperCallback(playlistAdapter, true)
             val touchHelper = ItemTouchHelper(callback)
             touchHelper.attachToRecyclerView(playlist)
         }



More information about the Android mailing list