mirror of
https://github.com/melihaksoy/Android-Kotlin-Modulerized-CleanArchitecture.git
synced 2026-01-11 20:00:32 +01:00
Removed unused observations
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user