소스 검색

Replace '@JvmField' with 'lateinit'

Signed-off-by: Tim Krüger <t@timkrueger.me>
Tim Krüger 2 년 전
부모
커밋
d5214ee29c
1개의 변경된 파일3개의 추가작업 그리고 5개의 파일을 삭제
  1. 3 5
      app/src/main/java/com/nextcloud/talk/controllers/ConversationInfoController.kt

+ 3 - 5
app/src/main/java/com/nextcloud/talk/controllers/ConversationInfoController.kt

@@ -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)