Revert "Rework injection of monarchy instances (introduce disk and memory)"

This reverts commit af79e1d0b5.
This commit is contained in:
ganfra
2018-11-27 12:06:40 +01:00
parent af79e1d0b5
commit 580c898447
17 changed files with 101 additions and 136 deletions

View File

@ -28,7 +28,8 @@ class HomeModule(private val homeActivity: HomeActivity) : Module {
TextItemFactory()
}
factory { (roomId: String) ->
factory {
val roomId = it.get(0) as String
TimelineEventController(roomId, get(), get(), get())
}

View File

@ -22,7 +22,7 @@ import im.vector.riotredesign.features.home.AvatarRenderer
import im.vector.riotredesign.features.home.room.detail.timeline.TimelineEventController
import kotlinx.android.synthetic.main.fragment_room_detail.*
import org.koin.android.ext.android.inject
import org.koin.core.parameter.parametersOf
import org.koin.core.parameter.ParameterList
class RoomDetailFragment : RiotFragment() {
@ -40,7 +40,7 @@ class RoomDetailFragment : RiotFragment() {
private val currentSession = matrix.currentSession
private var roomId: String by UnsafeFragmentArgumentDelegate()
private var eventId: String? by FragmentArgumentDelegate()
private val timelineEventController by inject<TimelineEventController> { parametersOf(roomId) }
private val timelineEventController by inject<TimelineEventController>(parameters = { ParameterList(roomId) })
private lateinit var room: Room
private lateinit var scrollOnNewMessageCallback: ScrollOnNewMessageCallback