Guest User

Untitled

a guest
Feb 22nd, 2016
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.70 KB | None | 0 0
  1. _textLogin.addTextChangedListener(object : TextWatcher {
  2.  
  3.             override fun afterTextChanged(s: Editable) {
  4.                 _currentSelectedBroker.login = _textLogin.text.toString()
  5.                 if(_currentSelectedBroker.isAnyFieldEmpty())
  6.                     _btnConnect.isEnabled = false
  7.                 else
  8.                     _btnConnect.isEnabled = true
  9.             }
  10.  
  11.             override fun beforeTextChanged(s: CharSequence, start: Int,
  12.                                            count: Int, after: Int) {
  13.             }
  14.  
  15.             override fun onTextChanged(s: CharSequence, start: Int,
  16.                                        before: Int, count: Int) {
  17.             }
  18.         })
Advertisement
Add Comment
Please, Sign In to add comment