Add "New releases" view in library page

This commit is contained in:
CappielloAntonio 2021-09-01 16:53:10 +02:00
parent 46dc173958
commit 9ae9873326
9 changed files with 116 additions and 14 deletions

View file

@ -30,12 +30,12 @@ public class AlbumRepository {
this.application = application;
}
public MutableLiveData<List<Album>> getAlbums(String type, int size) {
public MutableLiveData<List<Album>> getAlbums(String type, int size, Integer fromYear, Integer toYear) {
MutableLiveData<List<Album>> listLiveAlbums = new MutableLiveData<>();
App.getSubsonicClientInstance(application, false)
.getAlbumSongListClient()
.getAlbumList2(type, size, 0, null, null)
.getAlbumList2(type, size, 0, fromYear, toYear)
.enqueue(new Callback<SubsonicResponse>() {
@Override
public void onResponse(@NonNull Call<SubsonicResponse> call, @NonNull Response<SubsonicResponse> response) {