mirror of
https://github.com/CappielloAntonio/tempo.git
synced 2026-02-04 16:23:08 +00:00
refactor: removed old podcast section
This commit is contained in:
@@ -46,7 +46,6 @@ public class HomeViewModel extends AndroidViewModel {
|
|||||||
private final MutableLiveData<List<AlbumID3>> recentlyPlayedAlbumSample = new MutableLiveData<>(null);
|
private final MutableLiveData<List<AlbumID3>> recentlyPlayedAlbumSample = new MutableLiveData<>(null);
|
||||||
private final MutableLiveData<List<Integer>> years = new MutableLiveData<>(null);
|
private final MutableLiveData<List<Integer>> years = new MutableLiveData<>(null);
|
||||||
private final MutableLiveData<List<AlbumID3>> recentlyAddedAlbumSample = new MutableLiveData<>(null);
|
private final MutableLiveData<List<AlbumID3>> recentlyAddedAlbumSample = new MutableLiveData<>(null);
|
||||||
private final MutableLiveData<List<PodcastEpisode>> newestPodcastEpisodes = new MutableLiveData<>(null);
|
|
||||||
|
|
||||||
private final MutableLiveData<List<Chronology>> thisGridTopSong = new MutableLiveData<>(null);
|
private final MutableLiveData<List<Chronology>> thisGridTopSong = new MutableLiveData<>(null);
|
||||||
private final MutableLiveData<List<Child>> mediaInstantMix = new MutableLiveData<>(null);
|
private final MutableLiveData<List<Child>> mediaInstantMix = new MutableLiveData<>(null);
|
||||||
@@ -170,14 +169,6 @@ public class HomeViewModel extends AndroidViewModel {
|
|||||||
return recentlyPlayedAlbumSample;
|
return recentlyPlayedAlbumSample;
|
||||||
}
|
}
|
||||||
|
|
||||||
public LiveData<List<PodcastEpisode>> getNewestPodcastEpisodes(LifecycleOwner owner) {
|
|
||||||
if (newestPodcastEpisodes.getValue() == null) {
|
|
||||||
podcastRepository.getNewestPodcastEpisodes(20).observe(owner, newestPodcastEpisodes::postValue);
|
|
||||||
}
|
|
||||||
|
|
||||||
return newestPodcastEpisodes;
|
|
||||||
}
|
|
||||||
|
|
||||||
public LiveData<List<Child>> getMediaInstantMix(LifecycleOwner owner, Child media) {
|
public LiveData<List<Child>> getMediaInstantMix(LifecycleOwner owner, Child media) {
|
||||||
mediaInstantMix.setValue(Collections.emptyList());
|
mediaInstantMix.setValue(Collections.emptyList());
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user