I am a beginner of Jetpack compose. Now in my app screen, an AlertDialog
is used to show some information to user.
According to doc, onDismissRequest
is invoked when the user clicks outside the dialog or on the back button.
But I just want to dismiss it when back button is pressed, but not dissmiss when outside touched, how can I distinguish between them?