Last active
February 19, 2018 06:12
-
-
Save vicky7230/38766eebd10b4fa46eaadd7414d53bd0 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
| val subject = PublishSubject.create<String>() | |
| search_edit_text.addTextChangedListener(object : TextWatcher { | |
| override fun afterTextChanged(s: Editable?) { | |
| subject.onNext(s.toString()) | |
| } | |
| override fun beforeTextChanged(s: CharSequence?, start: Int, count: Int, after: Int) { | |
| } | |
| override fun onTextChanged(s: CharSequence?, start: Int, before: Int, count: Int) { | |
| } | |
| }) | |
| presenter.search(subject) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment