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
1 changed files with 2 additions and 4 deletions

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