Created
November 3, 2018 04:56
-
-
Save whalemare/022120ac932691c14e27ac1fcc367229 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
editSearch.addTextChangedListener(object : TextWatcher { | |
override fun afterTextChanged(editable: Editable?) { | |
} | |
override fun beforeTextChanged(p0: CharSequence?, p1: Int, p2: Int, p3: Int) { | |
} | |
override fun onTextChanged(charSequence: CharSequence?, p1: Int, p2: Int, p3: Int) { | |
val text = charSequence?.toString() ?: "" | |
val founded = presenter.search(text) | |
showResults(founded) | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment