Skip to content

Commit

Permalink
[PlayingQueueAdapter] do not start dragging on Long Press
Browse files Browse the repository at this point in the history
  • Loading branch information
chr56 committed Nov 25, 2024
1 parent c47980b commit 64cb5df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ abstract class AbsPlayerFragment :
playingQueueAdapter.current = MusicPlayerRemote.position
_recyclerViewDragDropManager = RecyclerViewDragDropManager()
_wrappedAdapter = recyclerViewDragDropManager.createWrappedAdapter(playingQueueAdapter)
recyclerViewDragDropManager.setInitiateOnTouch(true)
recyclerViewDragDropManager.setInitiateOnLongPress(false)

val playerRecyclerView = fetchRecyclerView()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ class PlayingQueueAdapter(
controller.registerClicking(itemView, position) {
onClick(position, dataset, image)
}
itemView.setOnLongClickListener { true }
menu?.let {
prepareMenu(dataset[position], position, it)
}
Expand Down

0 comments on commit 64cb5df

Please sign in to comment.