Show images in playing queue

This commit is contained in:
Karim Abou Zeid 2015-12-20 16:51:05 +01:00
commit 22e757170f
3 changed files with 2 additions and 13 deletions

View file

@ -29,13 +29,6 @@ public class PlayingQueueAdapter extends SongAdapter {
@Override
public void onBindViewHolder(@NonNull SongAdapter.ViewHolder holder, int position) {
super.onBindViewHolder(holder, position);
if (holder.imageText != null) {
holder.imageText.setVisibility(View.VISIBLE);
holder.imageText.setText("" + (position - current));
}
if (holder.image != null) {
holder.image.setVisibility(View.GONE);
}
if (holder.getItemViewType() == HISTORY) {
setAlpha(holder, 0.5f);
} else if (holder.getItemViewType() == CURRENT) {
@ -53,11 +46,6 @@ public class PlayingQueueAdapter extends SongAdapter {
return CURRENT;
}
@Override
protected void loadAlbumCover(Song song, ViewHolder holder) {
//super.loadAlbumCover(song, holder);
}
public void swapDataSet(ArrayList<Song> dataSet, int position) {
this.dataSet = dataSet;
current = position;

View file

@ -262,7 +262,7 @@ public class PlayerFragment extends Fragment implements MusicServiceEventListene
private void setUpDragSort() {
DragSortRecycler dragSortRecycler = new DragSortRecycler();
dragSortRecycler.setViewHandleId(R.id.image_text);
dragSortRecycler.setViewHandleId(R.id.image);
dragSortRecycler.setOnItemMovedListener(new DragSortRecycler.OnItemMovedListener() {
@Override
public void onItemMoved(int from, int to) {

View file

@ -86,6 +86,7 @@
<!--This is necessary for the drag sorting to work at the top-->
<View
android:layout_marginTop="120dp"
android:layout_alignTop="@+id/card_content"
android:layout_alignBottom="@+id/card_content"
android:id="@+id/draggable_area"