Hello, is there a way to set window attributes, ty...
# compose
s
Hello, is there a way to set window attributes, type etc of a Compose Dialog before its shown? Something similar to onCreateDialog , where devs had an opportunity to change window type etc before show() is invoked.
z
That’s generally what DialogProperties is for, but it might not cover every edge case
s
Yeah, i'm looking to change the type but as the window is already created, it fails with an exception
IllegalArgumentException: Window type can not be changed after the window is added
If i can get to execute it before Dialog composable shows, it would work. LaunchedEffect didn't help.