I just bumped my compose deps to the latest, and w...
# compose-android
b
I just bumped my compose deps to the latest, and where my UI used an
ExposedDropdownMenuBox
, it just started throwing an exception:
Copy code
java.lang.IllegalStateException: No OnBackPressedDispatcherOwner was provided via LocalOnBackPressedDispatcherOwner
                                                                                                    	at androidx.activity.compose.BackHandlerKt.BackHandler(BackHandler.kt:97)
                                                                                                    	at androidx.compose.material3.internal.BackHandler_androidKt.BackHandler(BackHandler.android.kt:26)
                                                                                                    	at androidx.compose.material3.ExposedDropdownMenuKt.ExposedDropdownMenuBox(ExposedDropdownMenu.kt:247)
I'm not familiar with
OnBackPressedDispatcherOwner
or
BackHandler
, is it supposed to be set automatically or is it something I have to explicitly set now I'm using compose inside a
ComposeView
because I have to run inside some legacy views.