mirror of
https://github.com/melihaksoy/Android-Kotlin-Modulerized-CleanArchitecture.git
synced 2026-03-31 22:53:06 +02:00
Removed unused observations
This commit is contained in:
@@ -35,21 +35,12 @@ class DetailFragment : BaseDaggerFragment<DetailBinding>() {
|
|||||||
viewModel.createParamsFor(args.launchId)
|
viewModel.createParamsFor(args.launchId)
|
||||||
viewModel.loadData()
|
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
|
// Observing error to show toast with retry action
|
||||||
observe(viewModel.errorData) {
|
observe(viewModel.errorData) {
|
||||||
showSnackbarWithAction(it) {
|
showSnackbarWithAction(it) {
|
||||||
viewModel.retry()
|
viewModel.retry()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
observe(viewModel.successData) {
|
|
||||||
Timber.i("")
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun getLayoutId(): Int = R.layout.fragment_detail
|
override fun getLayoutId(): Int = R.layout.fragment_detail
|
||||||
|
|||||||
Reference in New Issue
Block a user