mirror of
https://github.com/antebudimir/tempus.git
synced 2026-01-01 18:03:33 +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) {
|
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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue