More cleanup on @Inject members

This commit is contained in:
Benoit Marty 2022-09-23 16:25:48 +02:00 committed by Benoit Marty
parent b3068c017d
commit aa806ed2c6
4 changed files with 7 additions and 15 deletions

View file

@ -58,8 +58,7 @@ class DebugMenuActivity : VectorBaseActivity<ActivityDebugMenuBinding>() {
override fun getBinding() = ActivityDebugMenuBinding.inflate(layoutInflater)
@Inject
lateinit var clock: Clock
@Inject lateinit var clock: Clock
private lateinit var buffer: ByteArray

View file

@ -40,8 +40,7 @@ import javax.inject.Inject
@AndroidEntryPoint
class ThreadsActivity : VectorBaseActivity<ActivityThreadsBinding>() {
@Inject
lateinit var avatarRenderer: AvatarRenderer
@Inject lateinit var avatarRenderer: AvatarRenderer
// private val roomThreadDetailFragment: RoomThreadDetailFragment?
// get() {

View file

@ -69,14 +69,9 @@ class VectorAttachmentViewerActivity : AttachmentViewerActivity(), AttachmentInt
val sharedTransitionName: String?
) : Parcelable
@Inject
lateinit var sessionHolder: ActiveSessionHolder
@Inject
lateinit var dataSourceFactory: AttachmentProviderFactory
@Inject
lateinit var imageContentRenderer: ImageContentRenderer
@Inject lateinit var activeSessionHolder: ActiveSessionHolder
@Inject lateinit var dataSourceFactory: AttachmentProviderFactory
@Inject lateinit var imageContentRenderer: ImageContentRenderer
private val viewModel: VectorAttachmentViewerViewModel by viewModel()
private val errorFormatter by lazy(LazyThreadSafetyMode.NONE) { singletonEntryPoint().errorFormatter() }
@ -128,7 +123,7 @@ class VectorAttachmentViewerActivity : AttachmentViewerActivity(), AttachmentInt
}
}
val session = sessionHolder.getSafeActiveSession() ?: return Unit.also { finish() }
val session = activeSessionHolder.getSafeActiveSession() ?: return Unit.also { finish() }
val room = args.roomId?.let { session.getRoom(it) }

View file

@ -69,8 +69,7 @@ class RoomProfileActivity :
private val requireActiveMembershipViewModel: RequireActiveMembershipViewModel by viewModel()
@Inject
lateinit var roomDetailPendingActionStore: RoomDetailPendingActionStore
@Inject lateinit var roomDetailPendingActionStore: RoomDetailPendingActionStore
override fun getBinding(): ActivitySimpleBinding {
return ActivitySimpleBinding.inflate(layoutInflater)