mirror of
https://github.com/element-hq/element-android
synced 2024-11-27 03:48:12 +03:00
More cleanup on @Inject members
This commit is contained in:
parent
b3068c017d
commit
aa806ed2c6
4 changed files with 7 additions and 15 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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) }
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue