Dagger: fix some merging issues

This commit is contained in:
ganfra
2019-06-28 09:35:34 +02:00
parent f18bc9bd00
commit 604de7eebc
7 changed files with 80 additions and 66 deletions

View File

@ -49,10 +49,10 @@ import javax.inject.Inject
*/
class VectorFirebaseMessagingService : FirebaseMessagingService() {
@Inject lateinit var notificationDrawerManager: NotificationDrawerManager
@Inject lateinit var notifiableEventResolver: NotifiableEventResolver
@Inject lateinit var pusherManager: PushersManager
@Inject lateinit var activeSessionHolder: ActiveSessionHolder
private lateinit var notificationDrawerManager: NotificationDrawerManager
private lateinit var notifiableEventResolver: NotifiableEventResolver
private lateinit var pusherManager: PushersManager
private lateinit var activeSessionHolder: ActiveSessionHolder
// UI handler
private val mUIHandler by lazy {
@ -61,7 +61,10 @@ class VectorFirebaseMessagingService : FirebaseMessagingService() {
override fun onCreate() {
super.onCreate()
vectorComponent().inject(this)
notificationDrawerManager = vectorComponent().notificationDrawerManager()
notifiableEventResolver = vectorComponent().notifiableEventResolver()
pusherManager = vectorComponent().pusherManager()
activeSessionHolder = vectorComponent().activeSessionHolder()
}
/**