Created
April 8, 2020 13:15
-
-
Save diousk/276aec922da8be2e9d2a26c222f6851c to your computer and use it in GitHub Desktop.
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
viewLifecycleOwner.lifecycleScope.launchWhenResumed { | |
context?.hideKeyboard(searchView) | |
awaitKeyboardHidden() // wait for keyboard dismissed | |
activity?.supportFragmentManager?.popBackStack() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment