Update advrecyclerview and target SDK 27 (#345)

This commit is contained in:
Eugene Cheung 2017-10-29 21:20:28 -04:00 committed by GitHub
commit 465f1fe2db
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 29 additions and 9 deletions

View file

@ -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);
}

View file

@ -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;