clean code smells
continuous-integration/drone/push Build is passing Details

OpenWeatherApi
Lucas Delanier 2 years ago
parent 3b1bcc6fcf
commit 509506ebb8

@ -95,13 +95,19 @@ class HomeFragment : Fragment() {
pseudoEditText.setText(currentPlayer.pseudo) pseudoEditText.setText(currentPlayer.pseudo)
pseudoEditText.addTextChangedListener(object : TextWatcher { pseudoEditText.addTextChangedListener(object : TextWatcher {
override fun beforeTextChanged(s: CharSequence?, start: Int, count: Int, after: Int) { override fun beforeTextChanged(s: CharSequence?, start: Int, count: Int, after: Int) {
/*
do nothing
*/
} }
override fun onTextChanged(s: CharSequence?, start: Int, before: Int, count: Int) { override fun onTextChanged(s: CharSequence?, start: Int, before: Int, count: Int) {
currentPlayer.pseudo = s.toString() /*
do nothing
*/
} }
override fun afterTextChanged(s: Editable?) { override fun afterTextChanged(s: Editable?) {
currentPlayer.pseudo = s.toString()
} }
}) })
} }

Loading…
Cancel
Save