mirror of
https://github.com/CappielloAntonio/tempo.git
synced 2026-02-04 16:23:08 +00:00
Code refactor
This commit is contained in:
@@ -265,8 +265,7 @@ public class AlbumRepository {
|
|||||||
public MutableLiveData<List<Integer>> getDecades() {
|
public MutableLiveData<List<Integer>> getDecades() {
|
||||||
MutableLiveData<List<Integer>> decades = new MutableLiveData<>();
|
MutableLiveData<List<Integer>> decades = new MutableLiveData<>();
|
||||||
|
|
||||||
getFirstAlbum(first -> {
|
getFirstAlbum(first -> getLastAlbum(last -> {
|
||||||
getLastAlbum(last -> {
|
|
||||||
if(first != -1 && last != -1) {
|
if(first != -1 && last != -1) {
|
||||||
List<Integer> decadeList = new ArrayList();
|
List<Integer> decadeList = new ArrayList();
|
||||||
|
|
||||||
@@ -280,8 +279,7 @@ public class AlbumRepository {
|
|||||||
|
|
||||||
decades.setValue(decadeList);
|
decades.setValue(decadeList);
|
||||||
}
|
}
|
||||||
});
|
}));
|
||||||
});
|
|
||||||
|
|
||||||
return decades;
|
return decades;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user