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
Zach Klippenstein (he/him) [MOD]
08/09/2024, 8:21 AM
That’s generally what DialogProperties is for, but it might not cover every edge case
s
Sam
08/09/2024, 1:42 PM
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
Sam
08/09/2024, 1:47 PM
If i can get to execute it before Dialog composable shows, it would work. LaunchedEffect didn't help.