Removed unused observations

This commit is contained in:
Melih Aksoy
2019-07-03 11:54:23 +02:00
parent d41b35b659
commit d52ffb86c4

View File

@@ -35,21 +35,12 @@ class DetailFragment : BaseDaggerFragment<DetailBinding>() {
viewModel.createParamsFor(args.launchId)
viewModel.loadData()
// Observing state to show loading
observe(viewModel.stateData) {
// Loading can go here, skipping for now
}
// Observing error to show toast with retry action
observe(viewModel.errorData) {
showSnackbarWithAction(it) {
viewModel.retry()
}
}
observe(viewModel.successData) {
Timber.i("")
}
}
override fun getLayoutId(): Int = R.layout.fragment_detail