fix: shuffle all action

This commit is contained in:
antonio 2023-06-30 18:23:12 +02:00
parent fcb7135c3d
commit 960dd6c76a
4 changed files with 40 additions and 6 deletions

View file

@ -67,6 +67,10 @@ public class HomeViewModel extends AndroidViewModel {
return dicoverSongSample;
}
public LiveData<List<Child>> getRandomShuffleSample() {
return songRepository.getRandomSample(100, null, null);
}
public LiveData<List<Chronology>> getGridSongSample(LifecycleOwner owner) {
String server = Preferences.getServerId();
chronologyRepository.getLastWeek(server).observe(owner, thisGridTopSong::postValue);