Removed unused context parameters

This commit is contained in:
antonio 2023-03-10 19:02:25 +01:00
parent ff1a1350f9
commit 20052ff054
18 changed files with 51 additions and 51 deletions

View file

@ -197,17 +197,17 @@ public class HomeViewModel extends AndroidViewModel {
}
public LiveData<List<Child>> getArtistInstantMix(LifecycleOwner owner, ArtistID3 artist) {
if (artistInstantMix.getValue() == null) {
artistRepository.getTopSongs(artist.getName(), 10).observe(owner, artistInstantMix::postValue);
}
artistInstantMix.setValue(Collections.emptyList());
artistRepository.getTopSongs(artist.getName(), 10).observe(owner, artistInstantMix::postValue);
return artistInstantMix;
}
public LiveData<List<Child>> getArtistBestOf(LifecycleOwner owner, ArtistID3 artist) {
if (bestOfArtists.getValue() == null) {
artistRepository.getTopSongs(artist.getName(), 10).observe(owner, artistBestOf::postValue);
}
artistBestOf.setValue(Collections.emptyList());
artistRepository.getTopSongs(artist.getName(), 10).observe(owner, artistBestOf::postValue);
return artistBestOf;
}