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 = private val binding: ItemCustomIncomingPollMessageBinding =
ItemCustomIncomingPollMessageBinding.bind(itemView) ItemCustomIncomingPollMessageBinding.bind(itemView)
@JvmField
@Inject @Inject
var context: Context? = null lateinit var context: Context
@JvmField
@Inject
var appPreferences: AppPreferences? = null
@Inject @Inject
@JvmField lateinit var appPreferences: AppPreferences
var ncApi: NcApi? = null
@Inject
lateinit var ncApi: NcApi
lateinit var message: ChatMessage lateinit var message: ChatMessage

View File

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