Created
August 19, 2019 10:19
-
-
Save furkanaskin/112d486e78b88a2a73e5bc55db43f756 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class PodcastFragment : BaseFragment<PodcastViewModel, FragmentPodcastBinding>(PodcastViewModel::class.java) { | |
private val podcastFragmentArgs: PodcastFragmentArgs by navArgs() | |
override fun init() { | |
super.init() | |
fun getData() { | |
viewModel.getEpisodes(podcastFragmentArgs.podcastID) | |
viewModel.podcastLiveData.observe( | |
viewLifecycleOwner, | |
Observer<Resource<Podcasts>> { | |
initAdapter() | |
} | |
) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment