mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 12:23:58 +01:00
Replace size checks with isNotEmpty() in onTextChanged (Part of issue #5996)
This commit is contained in:
parent
08024da65e
commit
d00e6502b1
1 changed files with 2 additions and 2 deletions
|
|
@ -461,8 +461,8 @@ class LoginActivity : AccountAuthenticatorActivity() {
|
||||||
|
|
||||||
private fun onTextChanged(text: String) {
|
private fun onTextChanged(text: String) {
|
||||||
val enabled =
|
val enabled =
|
||||||
binding!!.loginUsername.text!!.length != 0 && binding!!.loginPassword.text!!.length != 0 &&
|
binding!!.loginUsername.text!!.isNotEmpty() && binding!!.loginPassword.text!!.isNotEmpty() &&
|
||||||
(BuildConfig.DEBUG || binding!!.loginTwoFactor.text!!.length != 0 || binding!!.loginTwoFactor.visibility != View.VISIBLE)
|
(BuildConfig.DEBUG || binding!!.loginTwoFactor.text!!.isNotEmpty() || binding!!.loginTwoFactor.visibility != View.VISIBLE)
|
||||||
binding!!.loginButton.isEnabled = enabled
|
binding!!.loginButton.isEnabled = enabled
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue