PM-14934: Allow accessibility autofill to fill just a username or just a password (#4312)

This commit is contained in:
David Perez 2024-11-15 14:15:02 -06:00 committed by GitHub
parent 089136552b
commit cad2df79b6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -9,5 +9,5 @@ data class FillableFields(
val usernameField: AccessibilityNodeInfo?,
val passwordFields: List<AccessibilityNodeInfo>,
) {
val hasFields: Boolean = usernameField != null && passwordFields.isNotEmpty()
val hasFields: Boolean = usernameField != null || passwordFields.isNotEmpty()
}