Grigory Panko
04/24/2025, 11:03 AMViewCompat.setOnApplyWindowInsetsListener
on a ComposeView
has no effect (the lambda is never called). I've filed an issue. This is a blocker for our project to update Compose to 1.9.0-alpha01, so hopefully this will get a higher priority 🙂Alex Vanyo
04/24/2025, 3:34 PMViewCompat.setOnApplyWindowInsetsListener
only allows setting one listener per View
- and in 1.9 there’s a new one that is being added internal to the Compose mechanisms. So what’s likely happening is that you set your listener first, and then a new internal Compose one is overwriting it.
A workaround would be setting the listener on a View
you control completely.Grigory Panko
04/24/2025, 6:40 PM