Relative Content

Tag Archive for androidkotlinandroid-jetpack-composedialogandroid-jetpack

Dismiss a Dialog in Jetpack Compose

So i customized a Dialog for data UPDATE which i don’t provide in this question since i think it would be too long. This Dialog would pop if value is found in the database, setting state found = 1.
When the Update Button is clicked, if UPDATE executed correctly then Dialog should be dismissed. The problem is that sometimes it is dismissed incorrectly (dismissed then immediately popped back) or even undismissed. What could possibly be the problem?