Skip to content

Commit 44d0263

Browse files
committed
fix(android): fix HybridViewModelImageProperty addListener type mismatch
The listeners property is MutableList<(Unit) -> Unit> but onChanged is () -> Unit. Wrap in lambda to match the expected signature, same pattern as TriggerProperty.
1 parent 3b806d1 commit 44d0263

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

android/src/main/java/com/margelo/nitro/rive/HybridViewModelImageProperty.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class HybridViewModelImageProperty(private val viewModelImage: ViewModelImagePro
1515
}
1616

1717
override fun addListener(onChanged: () -> Unit) {
18-
listeners.add(onChanged)
18+
listeners.add { _ -> onChanged() }
1919
ensureValueListenerJob(viewModelImage.valueFlow.map { })
2020
}
2121
}

0 commit comments

Comments
 (0)