mirror of
https://github.com/antebudimir/tempus.git
synced 2025-12-31 17:43:32 +00:00
Temporary and incomplete fix to player queue color
This commit is contained in:
parent
8de8ce2755
commit
199482f83d
3 changed files with 6 additions and 2 deletions
|
|
@ -73,7 +73,7 @@ public class PlayerSongQueueAdapter extends RecyclerView.Adapter<PlayerSongQueue
|
|||
|
||||
public void setItems(List<Song> songs) {
|
||||
this.songs = songs;
|
||||
notifyItemRangeChanged(0, songs.size());
|
||||
notifyDataSetChanged();
|
||||
}
|
||||
|
||||
public Song getItem(int id) {
|
||||
|
|
|
|||
|
|
@ -75,7 +75,7 @@ public class SongHorizontalAdapter extends RecyclerView.Adapter<SongHorizontalAd
|
|||
|
||||
public void setItems(List<Song> songs) {
|
||||
this.songs = songs;
|
||||
notifyItemRangeChanged(0, songs.size());
|
||||
notifyDataSetChanged();
|
||||
}
|
||||
|
||||
public Song getItem(int id) {
|
||||
|
|
|
|||
|
|
@ -130,6 +130,10 @@ public class PlayerBottomSheetFragment extends Fragment implements MusicServiceE
|
|||
if (pageState != -1) {
|
||||
MusicPlayerRemote.playSongAt(position);
|
||||
pageState = -1;
|
||||
|
||||
// TODO: Soluzione termporanea e non totalmente funzionante al problema del cambio colore
|
||||
// TODO: |_ delle righe delle canzoni già riprodotte
|
||||
playerSongQueueAdapter.notifyDataSetChanged();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue