Created
February 17, 2023 17:47
-
-
Save LDRAlighieri/4269a2c5c3076a48b3549949054d6e22 to your computer and use it in GitHub Desktop.
Example of corbind-activity OnBackPressedDispatcher.backPresses extension
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
onBackPressedDispatcher.backPresses(lifecycleOwner = this) | |
.onEach { currentFlowFragment?.onBackPressed() } | |
.launchIn(lifecycleScope) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment