Skip to content
Permalink
Browse files

🐛 Add applicationComponent when setting up AboutComponent

This fixes issue #631.
  • Loading branch information
cmargonis committed Oct 27, 2019
1 parent 998a3b9 commit c770ac825ad11ce416c6e2a9d036df575bdad8c4
Showing with 2 additions and 0 deletions.
  1. +2 −0 app/src/main/java/net/squanchy/about/AboutComponent.kt
@@ -5,11 +5,13 @@ import dagger.Component
import net.squanchy.injection.BaseActivityComponentBuilder
import net.squanchy.injection.ActivityLifecycle
import net.squanchy.injection.ApplicationComponent
import net.squanchy.injection.applicationComponent
import net.squanchy.navigation.NavigationModule
import net.squanchy.navigation.Navigator

fun aboutComponent(activity: AppCompatActivity): AboutComponent =
DaggerAboutComponent.builder()
.applicationComponent(activity.applicationComponent)
.activity(activity)
.build()

0 comments on commit c770ac8

Please sign in to comment.
You can’t perform that action at this time.