Created
September 10, 2020 17:58
-
-
Save MasoudFallahpour/6f1c8a9df94c751857f1f586191a0f33 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
private fun setOnEditorActionListener() { | |
setOnEditorActionListener { _, actionId, _ -> | |
if (actionId == EditorInfo.IME_ACTION_SEARCH) { | |
queryTextListener?.onQueryTextSubmit(text.toString()) | |
true | |
} else { | |
false | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment