File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
home/src/main/java/cz/skywall/multimoduleexample/home/base Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -9,14 +9,14 @@ import cz.skywall.multimoduleexample.home.injection.HomeComponent
99
1010abstract class BaseFragment : Fragment () {
1111
12- private companion object : SingletonHolder <HomeComponent , Context >({ context ->
12+ private object ModuleComponent : SingletonHolder<HomeComponent, Context>({ context ->
1313 DaggerHomeComponent
1414 .factory()
1515 .create((context.applicationContext as App ).applicationComponent)
1616 })
1717
1818 val homeComponent: HomeComponent
19- get() = BaseFragment .getInstance(requireContext())
19+ get() = ModuleComponent .getInstance(requireContext())
2020
2121 override fun onAttach (context : Context ) {
2222 super .onAttach(context)
You can’t perform that action at this time.
0 commit comments