mirror of
https://github.com/antebudimir/tempus.git
synced 2026-01-01 18:03:33 +00:00
style: code cleanup
This commit is contained in:
parent
a0dbb5c81f
commit
4c9e47379d
1 changed files with 1 additions and 1 deletions
|
|
@ -73,7 +73,7 @@ public class SongListPageViewModel extends AndroidViewModel {
|
||||||
case Constants.MEDIA_BY_GENRE:
|
case Constants.MEDIA_BY_GENRE:
|
||||||
int page = (songList.getValue() != null ? songList.getValue().size() : 0) / 100;
|
int page = (songList.getValue() != null ? songList.getValue().size() : 0) / 100;
|
||||||
songRepository.getSongsByGenre(genre.getGenre(), page).observe(owner, children -> {
|
songRepository.getSongsByGenre(genre.getGenre(), page).observe(owner, children -> {
|
||||||
if(children != null && !children.isEmpty()) {
|
if (children != null && !children.isEmpty()) {
|
||||||
List<Child> currentMedia = songList.getValue();
|
List<Child> currentMedia = songList.getValue();
|
||||||
currentMedia.addAll(children);
|
currentMedia.addAll(children);
|
||||||
songList.setValue(currentMedia);
|
songList.setValue(currentMedia);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue