Replace size checks with isNotEmpty() in onTextChanged (Part of issue #5996)

This commit is contained in:
jagadeesh-18-bot 2025-08-20 11:52:12 +05:30
parent 08024da65e
commit d00e6502b1

View file

@ -461,8 +461,8 @@ class LoginActivity : AccountAuthenticatorActivity() {
private fun onTextChanged(text: String) {
val enabled =
binding!!.loginUsername.text!!.length != 0 && binding!!.loginPassword.text!!.length != 0 &&
(BuildConfig.DEBUG || binding!!.loginTwoFactor.text!!.length != 0 || binding!!.loginTwoFactor.visibility != View.VISIBLE)
binding!!.loginUsername.text!!.isNotEmpty() && binding!!.loginPassword.text!!.isNotEmpty() &&
(BuildConfig.DEBUG || binding!!.loginTwoFactor.text!!.isNotEmpty() || binding!!.loginTwoFactor.visibility != View.VISIBLE)
binding!!.loginButton.isEnabled = enabled
}