Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Request for new functionality
View staffing
Description
Component used: fragment-compose
Version used: 1.7.0-alpha09
My app extensively uses the Fragments with ComposeViews in them. I was trying out new content extension from fragment-compose, but I noticed a lot of my ComposeViews interact with window insets but do not consume them. Therefore, the initialization code for these views looks like this:
After migration to the content extension, because ComposeView is not available until after content returns, consumeWindowInsets must be placed after the content lambda:
It would look much better if consumeWindowInsets was a parameter of the content function:
Sure, it's easy to declare such a content function in project, but I think it might be worth considering putting it into fragment-compose.