We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d41b35b commit d52ffb8Copy full SHA for d52ffb8
features/detail/src/main/kotlin/com/melih/detail/ui/DetailFragment.kt
@@ -35,21 +35,12 @@ class DetailFragment : BaseDaggerFragment<DetailBinding>() {
35
viewModel.createParamsFor(args.launchId)
36
viewModel.loadData()
37
38
- // Observing state to show loading
39
- observe(viewModel.stateData) {
40
- // Loading can go here, skipping for now
41
- }
42
-
43
// Observing error to show toast with retry action
44
observe(viewModel.errorData) {
45
showSnackbarWithAction(it) {
46
viewModel.retry()
47
}
48
49
50
- observe(viewModel.successData) {
51
- Timber.i("")
52
53
54
55
override fun getLayoutId(): Int = R.layout.fragment_detail
0 commit comments