Synchronization of starred tracks with local downloads

This commit is contained in:
antonio 2023-03-13 21:10:10 +01:00
parent 1aba732ab9
commit cbb6239b90
5 changed files with 151 additions and 0 deletions

View file

@ -212,6 +212,10 @@ public class HomeViewModel extends AndroidViewModel {
return artistBestOf;
}
public LiveData<List<Child>> getAllStarredTracks() {
return songRepository.getStarredSongs(false, -1);
}
public void refreshDiscoverySongSample(LifecycleOwner owner) {
songRepository.getRandomSample(10, null, null).observe(owner, dicoverSongSample::postValue);
}