Temporary and incomplete fix to player queue color

This commit is contained in:
CappielloAntonio 2021-08-02 17:18:15 +02:00
parent 8de8ce2755
commit 199482f83d
3 changed files with 6 additions and 2 deletions

View file

@ -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) {

View file

@ -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) {

View file

@ -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();
}
}
});