Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- _textLogin.addTextChangedListener(object : TextWatcher {
- override fun afterTextChanged(s: Editable) {
- _currentSelectedBroker.login = _textLogin.text.toString()
- if(_currentSelectedBroker.isAnyFieldEmpty())
- _btnConnect.isEnabled = false
- else
- _btnConnect.isEnabled = true
- }
- override fun beforeTextChanged(s: CharSequence, start: Int,
- count: Int, after: Int) {
- }
- override fun onTextChanged(s: CharSequence, start: Int,
- before: Int, count: Int) {
- }
- })
Advertisement
Add Comment
Please, Sign In to add comment