mirror of
https://github.com/antebudimir/tempus.git
synced 2026-01-01 18:03:33 +00:00
Fix initialization of mutableLiveData in repository
This commit is contained in:
parent
b8822fcda4
commit
8392d01fc5
7 changed files with 15 additions and 12 deletions
|
|
@ -45,6 +45,7 @@ public class AlbumCatalogueViewModel extends AndroidViewModel {
|
|||
@Override
|
||||
public void onLoadMedia(List<?> media) {
|
||||
List<Album> liveAlbum = albumList.getValue();
|
||||
if(liveAlbum == null) liveAlbum = new ArrayList<>();
|
||||
liveAlbum.addAll(MappingUtil.mapAlbum((List<AlbumID3>) media));
|
||||
albumList.setValue(liveAlbum);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue