[Android] Playlists: fix drag when !safeMode

Duncan McNamara git at videolan.org
Mon Aug 28 11:42:03 UTC 2023


vlc-android | branch: master | Duncan McNamara <dcn.mcnamara at gmail.com> | Wed Aug 23 17:32:17 2023 +0200| [47afa88e429a2fcf26c1e140f12552ce417e0b18] | committer: Duncan McNamara

Playlists: fix drag when !safeMode

> https://code.videolan.org/videolan/vlc-android/commit/47afa88e429a2fcf26c1e140f12552ce417e0b18
---

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

diff --git a/application/vlc-android/src/org/videolan/vlc/gui/HeaderMediaListActivity.kt b/application/vlc-android/src/org/videolan/vlc/gui/HeaderMediaListActivity.kt
index 3923553b5e..881aae161c 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/HeaderMediaListActivity.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/HeaderMediaListActivity.kt
@@ -150,7 +150,7 @@ open class HeaderMediaListActivity : AudioPlayerContainerActivity(), IEventsHand
 
         if (isPlaylist) {
             audioBrowserAdapter = AudioBrowserAdapter(MediaLibraryItem.TYPE_MEDIA, this, this, isPlaylist)
-            itemTouchHelperCallback = SwipeDragItemTouchHelperCallback(audioBrowserAdapter, lockedInSafeMode = true)
+            itemTouchHelperCallback = SwipeDragItemTouchHelperCallback(audioBrowserAdapter, lockedInSafeMode = Settings.safeMode)
             itemTouchHelperCallback.swipeAttemptListener = {
                 lifecycleScope.launch { showPinIfNeeded() }
             }



More information about the Android mailing list