Update advrecyclerview and target SDK 27 (#345)
This commit is contained in:
parent
451a093c09
commit
465f1fe2db
3 changed files with 29 additions and 9 deletions
|
|
@ -82,6 +82,16 @@ public class OrderablePlaylistSongAdapter extends PlaylistSongAdapter implements
|
|||
return dropPosition > 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onItemDragStarted(int position) {
|
||||
notifyDataSetChanged();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onItemDragFinished(int fromPosition, int toPosition, boolean result) {
|
||||
notifyDataSetChanged();
|
||||
}
|
||||
|
||||
public interface OnMoveItemListener {
|
||||
void onMoveItem(int fromPosition, int toPosition);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -115,6 +115,16 @@ public class PlayingQueueAdapter extends SongAdapter implements DraggableItemAda
|
|||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onItemDragStarted(int position) {
|
||||
notifyDataSetChanged();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onItemDragFinished(int fromPosition, int toPosition, boolean result) {
|
||||
notifyDataSetChanged();
|
||||
}
|
||||
|
||||
public class ViewHolder extends SongAdapter.ViewHolder implements DraggableItemViewHolder {
|
||||
@DraggableItemStateFlags
|
||||
private int mDragStateFlags;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue