mirror of
https://github.com/antebudimir/tempus.git
synced 2026-01-02 10:23:33 +00:00
feat: add ability to add podcast channels
This commit is contained in:
parent
0248187f41
commit
7f4be7ad3e
10 changed files with 204 additions and 2 deletions
|
|
@ -41,4 +41,12 @@ public class PodcastViewModel extends AndroidViewModel {
|
|||
|
||||
return podcastChannels;
|
||||
}
|
||||
|
||||
public void refreshNewestPodcastEpisodes(LifecycleOwner owner) {
|
||||
podcastRepository.getNewestPodcastEpisodes(20).observe(owner, newestPodcastEpisodes::postValue);
|
||||
}
|
||||
|
||||
public void refreshPodcastChannels(LifecycleOwner owner) {
|
||||
podcastRepository.getPodcastChannels(false, null).observe(owner, podcastChannels::postValue);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue