mirror of
https://github.com/antebudimir/tempus.git
synced 2026-01-02 18:31:40 +00:00
Code refactor
This commit is contained in:
parent
c37002c87b
commit
9bed2275ef
1 changed files with 12 additions and 14 deletions
|
|
@ -265,8 +265,7 @@ public class AlbumRepository {
|
|||
public MutableLiveData<List<Integer>> getDecades() {
|
||||
MutableLiveData<List<Integer>> decades = new MutableLiveData<>();
|
||||
|
||||
getFirstAlbum(first -> {
|
||||
getLastAlbum(last -> {
|
||||
getFirstAlbum(first -> getLastAlbum(last -> {
|
||||
if(first != -1 && last != -1) {
|
||||
List<Integer> decadeList = new ArrayList();
|
||||
|
||||
|
|
@ -280,8 +279,7 @@ public class AlbumRepository {
|
|||
|
||||
decades.setValue(decadeList);
|
||||
}
|
||||
});
|
||||
});
|
||||
}));
|
||||
|
||||
return decades;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue