Skip to content

Instantly share code, notes, and snippets.

@CDRussell
Last active January 17, 2018 23:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CDRussell/a81d91772a38cf3d2602070155fbb4af to your computer and use it in GitHub Desktop.
Save CDRussell/a81d91772a38cf3d2602070155fbb4af to your computer and use it in GitHub Desktop.
omnibarTextInput.addTextChangedListener(object : TextWatcher {
override fun afterTextChanged(editable: Editable) {
viewModel.onOmnibarInputStateChanged(omnibarTextInput.text.toString())
}
override fun beforeTextChanged(s: CharSequence?, start: Int, count: Int, after: Int) {}
override fun onTextChanged(s: CharSequence?, start: Int, before: Int, count: Int) {}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment