replace @JvmField with lateinit vars

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
Marcel Hibbe 2022-07-19 12:04:00 +02:00 committed by Andy Scherzinger (Rebase PR Action)
parent bfcab7cb49
commit 87fdd7017d
2 changed files with 10 additions and 16 deletions

View File

@ -60,17 +60,14 @@ class IncomingPollMessageViewHolder(incomingView: View, payload: Any) : MessageH
private val binding: ItemCustomIncomingPollMessageBinding =
ItemCustomIncomingPollMessageBinding.bind(itemView)
@JvmField
@Inject
var context: Context? = null
@JvmField
@Inject
var appPreferences: AppPreferences? = null
lateinit var context: Context
@Inject
@JvmField
var ncApi: NcApi? = null
lateinit var appPreferences: AppPreferences
@Inject
lateinit var ncApi: NcApi
lateinit var message: ChatMessage

View File

@ -57,17 +57,14 @@ class OutcomingPollMessageViewHolder(outcomingView: View, payload: Any) : Messag
private val binding: ItemCustomOutcomingPollMessageBinding =
ItemCustomOutcomingPollMessageBinding.bind(itemView)
@JvmField
@Inject
var context: Context? = null
@JvmField
@Inject
var appPreferences: AppPreferences? = null
lateinit var context: Context
@Inject
@JvmField
var ncApi: NcApi? = null
lateinit var appPreferences: AppPreferences
@Inject
lateinit var ncApi: NcApi
lateinit var message: ChatMessage