Fix some lint issues in viewModel

This commit is contained in:
CappielloAntonio 2021-09-02 14:12:13 +02:00
parent 589c3289d4
commit 984003ccd4
25 changed files with 76 additions and 149 deletions

View file

@ -32,9 +32,7 @@ public class DownloadViewModel extends AndroidViewModel {
}
public LiveData<List<Artist>> getDownloadedArtists(LifecycleOwner owner, int size) {
downloadRepository.getLiveDownloadSample(size, true, false, false).observe(owner, downloads -> {
downloadedArtistSample.postValue(MappingUtil.mapDownloadToArtist(downloads));
});
downloadRepository.getLiveDownloadSample(size, true, false, false).observe(owner, downloads -> downloadedArtistSample.postValue(MappingUtil.mapDownloadToArtist(downloads)));
return downloadedArtistSample;
}