mirror of
https://github.com/antebudimir/tempus.git
synced 2026-01-01 18:03:33 +00:00
Removed placeholder in every adapter
This commit is contained in:
parent
562d437da7
commit
f5b767157d
25 changed files with 30 additions and 42 deletions
|
|
@ -48,7 +48,7 @@ public class AlbumAdapter extends RecyclerView.Adapter<AlbumAdapter.ViewHolder>
|
|||
holder.textArtistName.setText(MusicUtil.getReadableInfo(album.getArtistName()));
|
||||
|
||||
CustomGlideRequest.Builder
|
||||
.from(context, album.getPrimary(), album.getBlurHash(), CustomGlideRequest.ALBUM_PIC)
|
||||
.from(context, album.getPrimary(), CustomGlideRequest.ALBUM_PIC)
|
||||
.build()
|
||||
.into(holder.cover);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ public class AlbumArtistPageOrSimilarAdapter extends RecyclerView.Adapter<AlbumA
|
|||
holder.textArtistName.setText(MusicUtil.getReadableInfo(album.getArtistName()));
|
||||
|
||||
CustomGlideRequest.Builder
|
||||
.from(context, album.getPrimary(), album.getBlurHash(), CustomGlideRequest.ALBUM_PIC)
|
||||
.from(context, album.getPrimary(), CustomGlideRequest.ALBUM_PIC)
|
||||
.build()
|
||||
.into(holder.cover);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -85,7 +85,7 @@ public class AlbumCatalogueAdapter extends RecyclerView.Adapter<AlbumCatalogueAd
|
|||
holder.textArtistName.setText(MusicUtil.getReadableInfo(album.getArtistName()));
|
||||
|
||||
CustomGlideRequest.Builder
|
||||
.from(context, album.getPrimary(), album.getBlurHash(), CustomGlideRequest.ALBUM_PIC)
|
||||
.from(context, album.getPrimary(), CustomGlideRequest.ALBUM_PIC)
|
||||
.build()
|
||||
.override(300)
|
||||
.into(holder.cover);
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ public class AlbumHorizontalAdapter extends RecyclerView.Adapter<AlbumHorizontal
|
|||
holder.albumArtist.setText(MusicUtil.getReadableInfo(album.getArtistName()));
|
||||
|
||||
CustomGlideRequest.Builder
|
||||
.from(context, album.getPrimary(), album.getBlurHash(), CustomGlideRequest.ALBUM_PIC)
|
||||
.from(context, album.getPrimary(), CustomGlideRequest.ALBUM_PIC)
|
||||
.build()
|
||||
.into(holder.cover);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ public class ArtistAdapter extends RecyclerView.Adapter<ArtistAdapter.ViewHolder
|
|||
holder.textArtistName.setText(MusicUtil.getReadableInfo(artist.getName()));
|
||||
|
||||
CustomGlideRequest.Builder
|
||||
.from(context, artist.getId(), artist.getPrimaryBlurHash(), CustomGlideRequest.ARTIST_PIC)
|
||||
.from(context, artist.getId(), CustomGlideRequest.ARTIST_PIC)
|
||||
.build()
|
||||
.into(holder.cover);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -84,7 +84,7 @@ public class ArtistCatalogueAdapter extends RecyclerView.Adapter<ArtistCatalogue
|
|||
holder.textArtistName.setText(MusicUtil.getReadableInfo(artist.getName()));
|
||||
|
||||
CustomGlideRequest.Builder
|
||||
.from(context, artist.getId(), artist.getPrimaryBlurHash(), CustomGlideRequest.ARTIST_PIC)
|
||||
.from(context, artist.getId(), CustomGlideRequest.ARTIST_PIC)
|
||||
.build()
|
||||
.into(holder.cover);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ public class ArtistHorizontalAdapter extends RecyclerView.Adapter<ArtistHorizont
|
|||
holder.artistInfo.setText("Album count: " + String.valueOf(artist.getAlbumCount()));
|
||||
|
||||
CustomGlideRequest.Builder
|
||||
.from(context, artist.getId(), artist.getPrimaryBlurHash(), CustomGlideRequest.ARTIST_PIC)
|
||||
.from(context, artist.getId(), CustomGlideRequest.ARTIST_PIC)
|
||||
.build()
|
||||
.into(holder.cover);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ public class ArtistSimilarAdapter extends RecyclerView.Adapter<ArtistSimilarAdap
|
|||
holder.textArtistName.setText(MusicUtil.getReadableInfo(artist.getName()));
|
||||
|
||||
CustomGlideRequest.Builder
|
||||
.from(context, artist.getId(), artist.getPrimaryBlurHash(), CustomGlideRequest.ALBUM_PIC)
|
||||
.from(context, artist.getId(), CustomGlideRequest.ALBUM_PIC)
|
||||
.build()
|
||||
.into(holder.cover);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ public class DiscoverSongAdapter extends RecyclerView.Adapter<DiscoverSongAdapte
|
|||
holder.textAlbum.setText(MusicUtil.getReadableInfo(song.getAlbumName()));
|
||||
|
||||
CustomGlideRequest.Builder
|
||||
.from(context, song.getPrimary(), song.getBlurHash(), CustomGlideRequest.SONG_PIC)
|
||||
.from(context, song.getPrimary(), CustomGlideRequest.SONG_PIC)
|
||||
.build()
|
||||
.into(holder.cover);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ public class PlayerNowPlayingSongAdapter extends RecyclerView.Adapter<PlayerNowP
|
|||
Song song = songs.get(position);
|
||||
|
||||
CustomGlideRequest.Builder
|
||||
.from(context, song.getId(), song.getBlurHash(), CustomGlideRequest.SONG_PIC)
|
||||
.from(context, song.getId(), CustomGlideRequest.SONG_PIC)
|
||||
.build()
|
||||
.into(holder.cover);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ public class PlayerSongQueueAdapter extends RecyclerView.Adapter<PlayerSongQueue
|
|||
holder.songArtist.setText(MusicUtil.getReadableInfo(song.getArtistName()));
|
||||
|
||||
CustomGlideRequest.Builder
|
||||
.from(context, song.getPrimary(), song.getBlurHash(), CustomGlideRequest.SONG_PIC)
|
||||
.from(context, song.getPrimary(), CustomGlideRequest.SONG_PIC)
|
||||
.build()
|
||||
.into(holder.cover);
|
||||
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ public class PlaylistAdapter extends RecyclerView.Adapter<PlaylistAdapter.ViewHo
|
|||
holder.textPlaylistSongCount.setText("Song count: " + String.valueOf(playlist.getSongCount()));
|
||||
|
||||
CustomGlideRequest.Builder
|
||||
.from(context, playlist.getPrimary(), playlist.getBlurHash(), CustomGlideRequest.PLAYLIST_PIC)
|
||||
.from(context, playlist.getPrimary(), CustomGlideRequest.PLAYLIST_PIC)
|
||||
.build()
|
||||
.into(holder.cover);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -82,7 +82,7 @@ public class PlaylistCatalogueAdapter extends RecyclerView.Adapter<PlaylistCatal
|
|||
holder.textPlaylistName.setText(MusicUtil.getReadableInfo(playlist.getName()));
|
||||
|
||||
CustomGlideRequest.Builder
|
||||
.from(context, playlist.getPrimary(), playlist.getBlurHash(), CustomGlideRequest.PLAYLIST_PIC)
|
||||
.from(context, playlist.getPrimary(), CustomGlideRequest.PLAYLIST_PIC)
|
||||
.build()
|
||||
.into(holder.cover);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ public class RecentMusicAdapter extends RecyclerView.Adapter<RecentMusicAdapter.
|
|||
holder.textAlbum.setText(MusicUtil.getReadableInfo(song.getAlbumName()));
|
||||
|
||||
CustomGlideRequest.Builder
|
||||
.from(context, song.getPrimary(), song.getBlurHash(), CustomGlideRequest.SONG_PIC)
|
||||
.from(context, song.getPrimary(), CustomGlideRequest.SONG_PIC)
|
||||
.build()
|
||||
.into(holder.cover);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ public class SongHorizontalAdapter extends RecyclerView.Adapter<SongHorizontalAd
|
|||
}
|
||||
|
||||
CustomGlideRequest.Builder
|
||||
.from(context, song.getPrimary(), song.getBlurHash(), CustomGlideRequest.SONG_PIC)
|
||||
.from(context, song.getPrimary(), CustomGlideRequest.SONG_PIC)
|
||||
.build()
|
||||
.into(holder.cover);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue