Closed brezinajn closed 7 years ago
Hi @brezinajn, yes it's possible 🙂
You can access TextWatcher
reference inside lambda and assign it to variable:
var textWatcher: TextWatcher? = null
textView.textWatcher {
textWatcher = this
}
textView.removeTextChangedListener(textWatcher)
Uhm, missed that one :) Thanks :)
Is there any way to remove listener added by textWatcher extension function? Thanks :)