mirror of
https://github.com/divkit/divkit.git
synced 2026-05-07 20:02:32 +00:00
fix div-custom binding on background thread
commit_hash:dffa792cb3a0656b13cc8d7c6b7d8b5192045eed
This commit is contained in:
@@ -49,11 +49,13 @@ internal class DivCustomBinder @Inject constructor(
|
||||
baseBinder.bindId(divView, view, null)
|
||||
|
||||
val divValue = div.value
|
||||
if (divCustomContainerViewAdapter.isCustomTypeSupported(divValue.customType)) {
|
||||
bind(view, customView, oldDiv?.value, divValue, context,
|
||||
{ divCustomContainerViewAdapter.createView(divValue, divView, resolver, path) },
|
||||
{ divCustomContainerViewAdapter.bindView(it, divValue, divView, resolver, path) }
|
||||
)
|
||||
executeOnMainThreadBlocking {
|
||||
if (divCustomContainerViewAdapter.isCustomTypeSupported(divValue.customType)) {
|
||||
bind(view, customView, oldDiv?.value, divValue, context,
|
||||
{ divCustomContainerViewAdapter.createView(divValue, divView, resolver, path) },
|
||||
{ divCustomContainerViewAdapter.bindView(it, divValue, divView, resolver, path) }
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user