Hi everyone. Did anyone experience a problem with ...
# compose
h
Hi everyone. Did anyone experience a problem with AndroidView in alpha10. I'd been using MapView successfully within an AndroidView in alpha09. However, alpha10 introduced a strange behavior in which the
viewBlock
is called whenever the state changes, instead of
updateBlock
. I double checked every state parameter that I use in
viewBlock
and confirmed that even if none of them changes,
viewBlock
still gets executed.
j
Yes, you are not alone, I think I saw another user with the exact same problem a couple of days ago. Can you please file a bug with a minimized reproduction, and link it in this slack thread?
👍 1
a
I had similar issues. Here is the issue: https://issuetracker.google.com/issues/177561480
a
yeah that’s me. I have a CameraX View inside in my case. I didn’t have time to make a repro sample and file an issue unfortunately.
j
@aiidziis Is that the same bug? In @Halil Ozercan’s case, the view is being recreated, but in your issue you aren't receiving input. It isn't clear to me from the descriptions that these are the same bug, unless you've verified the issue you're seeing is also related to
viewBlock
being called instead of
updateBlock
, in which case your bug should mention that.
a
@jim mine is actually different.
updateBlock
is called once for
WebView
, but it fails to rerender content after receiving input events. Actually it is a bit weird because when I put app to background and open it again, then the text I wrote into text field is rendered. Attached video, to make clear what I mean.
j
So we still need a bug filed with a repro demonstrating @Halil Ozercan’s bug.
p
I have the same problem @Halil Ozercan . Even with alpha12. Is there a bug reported already? I do not want to create duplicates
a