Merge pull request #262 from arkon/playlist-drag-images
Allow dragging playlist items by image too
This commit is contained in:
commit
4d3a42e274
1 changed files with 2 additions and 1 deletions
|
|
@ -61,7 +61,8 @@ public class OrderablePlaylistSongAdapter extends PlaylistSongAdapter implements
|
|||
|
||||
@Override
|
||||
public boolean onCheckCanStartDrag(ViewHolder holder, int position, int x, int y) {
|
||||
return onMoveItemListener != null && position > 0 && ViewUtil.hitTest(holder.dragView, x, y);
|
||||
return onMoveItemListener != null && position > 0 &&
|
||||
(ViewUtil.hitTest(holder.dragView, x, y) || ViewUtil.hitTest(holder.image, x, y));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue