izyaboi
06/11/2024, 10:12 AMcomposeView.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}
                        )
                    }
                }
            }
        }
    }
}