mirror of
https://github.com/accelforce/Yuito
synced 2025-02-06 18:53:29 +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>()
|
private var bypass by Delegates.notNull<Boolean>()
|
||||||
|
|
||||||
init {
|
|
||||||
syncBypass()
|
|
||||||
}
|
|
||||||
|
|
||||||
fun attachViewModel(viewModel: QuickTootViewModel, owner: LifecycleOwner) {
|
fun attachViewModel(viewModel: QuickTootViewModel, owner: LifecycleOwner) {
|
||||||
this.viewModel = viewModel
|
this.viewModel = viewModel
|
||||||
|
|
||||||
|
syncBypass()
|
||||||
|
|
||||||
binding.buttonVisibility.attachViewModel(viewModel, owner)
|
binding.buttonVisibility.attachViewModel(viewModel, owner)
|
||||||
|
|
||||||
viewModel.content.observe(owner) {
|
viewModel.content.observe(owner) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user