mirror of
https://github.com/CappielloAntonio/tempo.git
synced 2026-02-01 23:13:36 +00:00
Removed the use of setIsRecyclable(false) in adapters that used it
This commit is contained in:
@@ -50,8 +50,6 @@ public class ArtistSimilarAdapter extends RecyclerView.Adapter<ArtistSimilarAdap
|
||||
|
||||
@Override
|
||||
public void onBindViewHolder(ViewHolder holder, int position) {
|
||||
holder.setIsRecyclable(false);
|
||||
|
||||
Artist artist = artists.get(position);
|
||||
|
||||
holder.textArtistName.setText(MusicUtil.getReadableString(artist.getName()));
|
||||
@@ -73,6 +71,16 @@ public class ArtistSimilarAdapter extends RecyclerView.Adapter<ArtistSimilarAdap
|
||||
notifyDataSetChanged();
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getItemViewType(int position) {
|
||||
return position;
|
||||
}
|
||||
|
||||
@Override
|
||||
public long getItemId(int position) {
|
||||
return position;
|
||||
}
|
||||
|
||||
private void setArtistCover(Artist artist, ImageView cover) {
|
||||
ArtistRepository artistRepository = new ArtistRepository(App.getInstance());
|
||||
LiveData<Artist> liveData = artistRepository.getArtistFullInfo(artist.getId());
|
||||
|
||||
Reference in New Issue
Block a user