Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save MasoudFallahpour/6f1c8a9df94c751857f1f586191a0f33 to your computer and use it in GitHub Desktop.
Save MasoudFallahpour/6f1c8a9df94c751857f1f586191a0f33 to your computer and use it in GitHub Desktop.
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