mirror of
https://github.com/CappielloAntonio/tempo.git
synced 2026-02-04 16:23:08 +00:00
Temporary and incomplete fix to player queue color
This commit is contained in:
@@ -73,7 +73,7 @@ public class PlayerSongQueueAdapter extends RecyclerView.Adapter<PlayerSongQueue
|
|||||||
|
|
||||||
public void setItems(List<Song> songs) {
|
public void setItems(List<Song> songs) {
|
||||||
this.songs = songs;
|
this.songs = songs;
|
||||||
notifyItemRangeChanged(0, songs.size());
|
notifyDataSetChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
public Song getItem(int id) {
|
public Song getItem(int id) {
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ public class SongHorizontalAdapter extends RecyclerView.Adapter<SongHorizontalAd
|
|||||||
|
|
||||||
public void setItems(List<Song> songs) {
|
public void setItems(List<Song> songs) {
|
||||||
this.songs = songs;
|
this.songs = songs;
|
||||||
notifyItemRangeChanged(0, songs.size());
|
notifyDataSetChanged();
|
||||||
}
|
}
|
||||||
|
|
||||||
public Song getItem(int id) {
|
public Song getItem(int id) {
|
||||||
|
|||||||
@@ -130,6 +130,10 @@ public class PlayerBottomSheetFragment extends Fragment implements MusicServiceE
|
|||||||
if (pageState != -1) {
|
if (pageState != -1) {
|
||||||
MusicPlayerRemote.playSongAt(position);
|
MusicPlayerRemote.playSongAt(position);
|
||||||
pageState = -1;
|
pageState = -1;
|
||||||
|
|
||||||
|
// TODO: Soluzione termporanea e non totalmente funzionante al problema del cambio colore
|
||||||
|
// TODO: |_ delle righe delle canzoni già riprodotte
|
||||||
|
playerSongQueueAdapter.notifyDataSetChanged();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user