mirror of
https://github.com/antebudimir/tempus.git
synced 2025-12-31 17:43:32 +00:00
WIP Added possibility to switch default image when absent the original one
This commit is contained in:
parent
a21a0132bd
commit
2b5a686fe4
23 changed files with 125 additions and 124 deletions
|
|
@ -60,7 +60,7 @@ public class RecentMusicAdapter extends RecyclerView.Adapter<RecentMusicAdapter.
|
|||
holder.textAlbum.setText(song.getAlbumName());
|
||||
|
||||
CustomGlideRequest.Builder
|
||||
.from(context, song.getPrimary(), song.getBlurHash(), CustomGlideRequest.PRIMARY, CustomGlideRequest.TOP_QUALITY)
|
||||
.from(context, song.getPrimary(), song.getBlurHash(), CustomGlideRequest.PRIMARY, CustomGlideRequest.TOP_QUALITY, CustomGlideRequest.SONG_PIC)
|
||||
.build()
|
||||
.into(holder.cover);
|
||||
}
|
||||
|
|
@ -88,10 +88,7 @@ public class RecentMusicAdapter extends RecyclerView.Adapter<RecentMusicAdapter.
|
|||
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
SongRepository songRepository = new SongRepository(App.getInstance());
|
||||
QueueRepository queueRepository = new QueueRepository(App.getInstance());
|
||||
|
||||
songRepository.increasePlayCount(songs.get(getBindingAdapterPosition()));
|
||||
queueRepository.insertAllAndStartNew(songs.subList(getBindingAdapterPosition(), songs.size()));
|
||||
|
||||
mainActivity.isBottomSheetInPeek(true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue