1
0
mirror of https://github.com/accelforce/Yuito synced 2025-01-30 07:34:51 +01:00

Fix incorrect access to the lateinit variable

This commit is contained in:
kyori19 2021-08-04 01:22:38 +09:00
parent fe6b192a1c
commit 17a093075c

View File

@ -35,13 +35,11 @@ class QuickTootView @JvmOverloads constructor(
private var bypass by Delegates.notNull<Boolean>()
init {
syncBypass()
}
fun attachViewModel(viewModel: QuickTootViewModel, owner: LifecycleOwner) {
this.viewModel = viewModel
syncBypass()
binding.buttonVisibility.attachViewModel(viewModel, owner)
viewModel.content.observe(owner) {