Skip to content

Conversation

terrakok
Copy link
Member

@terrakok terrakok commented Oct 2, 2025

It is required to handle a native klibs compilation problem: https://youtrack.jetbrains.com/issue/KT-60874

Fixes CMP-9008 Fix backward compatibility of ui module klibs due to removing ui-backhandler dependency

Release Notes

N/A


var progressChannel: Channel<BackEventCompat>? by remember(onBack) {
mutableStateOf(null)
val handler = remember(enabled, onBack) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should maybe move enabled out so that we don't create a new handler when the value changes (and then remove the old one, add the new one, and thus change handlers' order):

val handler = remember(onBack) {
    ProgressBackEventHandler(enabled, onBack, coroutineScope)
}
handler.isBackEnabled = enabled

"No NavigationEventDispatcher was provided via LocalCompatNavigationEventDispatcherOwner"
)
val dispatcher = owner.navigationEventDispatcher
val handler = remember(enabled, onBack) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ditto.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants