Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Attachment actions
Unintended behavior
View staffing
Description
Version used: 1.9.3
Devices/Android versions reproduced on:
Pixel 7 / Android 15
When a compose Dialog is open on the backstack and predictive back is enabled, using a predictive back gesture to navigate back to the fragment with the open compose dialog is cancelled. This is visually obvious, but supported by the log statement: "sendCancelIfRunning: isInProgress=false callback=androidx.activity.OnBackPressedDispatcher$Api34Impl$createOnBackAnimationCallback". I don't have full visibility into this issue, but what i do know is:
- The cancellation begins at AndroidDialog.kt - composable Dialog() function calls DialogWrapper.show()
- This ultimately calls WindowOnBackInvokedDispatcher.detachFromWindow() which then calls clear()
- This then calls sendCancelIfInProgress() where the above log statement is included.
Sample app:
This has also been recorded here:
If this is a bug in the library, we would appreciate if you could attach:
- Sample project to trigger the issue.
- A screenrecord or screenshots showing the issue (if UI related).