Status Update
Comments
ti...@google.com <ti...@google.com> #2
Can you try with the latest snapshot? Not reproducible for me on androidx-main.
an...@team.bumble.com <an...@team.bumble.com> #3
Ok, after trying a couple more versions, realized this is a duplicate of
From the release notes:
AndroidView's update callback's first invocation will now be defered until the view is attached, instead of running when the composition that introduces the AndroidView is applied. This fixes a bug where the update callback wouldn't be invalidated if a state it read was changed immediately by an effect. (Ie9438,
) b/291094055
Sorry for the confusion!
os...@google.com <os...@google.com> #4
Seems to work properly. Attached video (the bottom blue panel is the FrameLayout).
That's with: kotlin 2.0.21, constraintlayout 2.1.4, compose BOM 2024.12.01 (1.7.6)
os...@google.com <os...@google.com> #5
Actually, I just noticed compose ConstraintLayout in the stacktrace, have you tried upgrading to :constraintlayout:2.2.0
and :constraintlayout-compose:1.1.0
?
os...@google.com <os...@google.com> #6
If constraintlayout-compose 1.1.0 doesn't fix it, we do have a related fix coming into stable, but if you want to make sure it'll work, you could try a SNAPSHOT depedency:
Anything recent should work, like 12915112
. Your constraintlayout-compose version should be 1.2.0-SNAPSHOT
(2.3.0-SNAPSHOT for the Views version).
Description
Steps to Reproduce or Code Sample to Reproduce:
androidx.constraintlayout.widget.ConstraintLayout
as a parent view, addandroidx.compose.ui.platform.ComposeView
and other AndroidViews as children, and setup constraints:Similar to https://issuetracker.google.com/issues/332898040
Stack trace (if applicable):