Need some help . have anyone a guide how i can ope...
# compose
i
Need some help . have anyone a guide how i can open a composeDialog in a Fragment with a Recylcerview . i use this https://developer.android.com/develop/ui/compose/components/dialog but the problem here is that is used in a context of a composable. if i create it like that
Copy code
composeView.setOnClickListener {
    createDialog()
}
private fun createDialog() {
    binding.composeView.apply {
        setViewCompositionStrategy(ViewCompositionStrategy.DisposeOnViewTreeLifecycleDestroyed)
        setContent {
            RtlTheme {
                val openDialog = remember { mutableStateOf(false) } <-- work only if i set too true but only one time and if i swtch the fragment and go back how can i seet that in the setOnClickListener outside of the composable to true that it work every time i close the dialog and stay on the fragment
                when {
                    openDialog.value -> {
                        InfoDialog(
                            dialogHeadline = stringResource(string.deezer_cooperation_dialog_headline),
                            dialogCopyText = stringResource(string.deezer_cooperation_dialog_copy_text),
                            dialogPrimaryButtonText = stringResource(string.close),
                            onDismissRequest = { openDialog.value = false}
                        )
                    }
                }

            }
        }
    }
}
additional the whole ui is blocked not clickable after call create dialog