Skip to content

Commit d52ffb8

Browse files
author
Melih Aksoy
committed
Removed unused observations
1 parent d41b35b commit d52ffb8

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

features/detail/src/main/kotlin/com/melih/detail/ui/DetailFragment.kt

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,21 +35,12 @@ class DetailFragment : BaseDaggerFragment<DetailBinding>() {
3535
viewModel.createParamsFor(args.launchId)
3636
viewModel.loadData()
3737

38-
// Observing state to show loading
39-
observe(viewModel.stateData) {
40-
// Loading can go here, skipping for now
41-
}
42-
4338
// Observing error to show toast with retry action
4439
observe(viewModel.errorData) {
4540
showSnackbarWithAction(it) {
4641
viewModel.retry()
4742
}
4843
}
49-
50-
observe(viewModel.successData) {
51-
Timber.i("")
52-
}
5344
}
5445

5546
override fun getLayoutId(): Int = R.layout.fragment_detail

0 commit comments

Comments
 (0)