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:
parent
fe6b192a1c
commit
17a093075c
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user