Removed unused code

This commit is contained in:
CappielloAntonio 2021-08-02 17:10:37 +02:00
parent 5248e897dd
commit 8de8ce2755
7 changed files with 10 additions and 475 deletions

View file

@ -73,7 +73,7 @@ public class PlayerSongQueueAdapter extends RecyclerView.Adapter<PlayerSongQueue
public void setItems(List<Song> songs) {
this.songs = songs;
notifyDataSetChanged();
notifyItemRangeChanged(0, songs.size());
}
public Song getItem(int id) {

View file

@ -75,7 +75,7 @@ public class SongHorizontalAdapter extends RecyclerView.Adapter<SongHorizontalAd
public void setItems(List<Song> songs) {
this.songs = songs;
notifyDataSetChanged();
notifyItemRangeChanged(0, songs.size());
}
public Song getItem(int id) {
@ -103,9 +103,7 @@ public class SongHorizontalAdapter extends RecyclerView.Adapter<SongHorizontalAd
itemView.setOnClickListener(this);
itemView.setOnLongClickListener(this);
more.setOnClickListener(v -> {
openMore(v);
});
more.setOnClickListener(this::openMore);
songTitle.setSelected(true);
}