Replace '@JvmField' with 'lateinit'

Signed-off-by: Tim Krüger <t@timkrueger.me>
This commit is contained in:
Tim Krüger 2022-07-28 18:01:55 +02:00
parent 00f06c6ef2
commit d5214ee29c
No known key found for this signature in database
GPG key ID: FECE3A7222C52A4E

View file

@ -107,12 +107,10 @@ class ConversationInfoController(args: Bundle) :
private val binding: ControllerConversationInfoBinding by viewBinding(ControllerConversationInfoBinding::bind)
@Inject
@JvmField
var ncApi: NcApi? = null
lateinit var ncApi: NcApi
@Inject
@JvmField
var eventBus: EventBus? = null
lateinit var eventBus: EventBus
private val conversationToken: String?
private val conversationUser: User?
@ -162,7 +160,7 @@ class ConversationInfoController(args: Bundle) :
override fun onAttach(view: View) {
super.onAttach(view)
eventBus?.register(this)
eventBus.register(this)
if (databaseStorageModule == null) {
databaseStorageModule = DatabaseStorageModule(conversationUser!!, conversationToken)