From 6d11921f45ca210b31387e49f41d30c05fe4978c Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Tue, 26 Feb 2019 11:50:02 -0500 Subject: [PATCH] exclude TextFlagMultiLine from autofill detection --- src/Android/Autofill/FieldCollection.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Android/Autofill/FieldCollection.cs b/src/Android/Autofill/FieldCollection.cs index 02ea1887d..05210073a 100644 --- a/src/Android/Autofill/FieldCollection.cs +++ b/src/Android/Autofill/FieldCollection.cs @@ -304,6 +304,13 @@ namespace Bit.Android.Autofill f.InputType.HasFlag(InputTypes.TextVariationVisiblePassword) || f.InputType.HasFlag(InputTypes.TextVariationWebPassword); + // For whatever reason, multi-line input types are coming through with TextVariationPassword flags + if(inputTypePassword && f.InputType.HasFlag(InputTypes.TextVariationPassword) && + f.InputType.HasFlag(InputTypes.TextFlagMultiLine)) + { + inputTypePassword = false; + } + if(!inputTypePassword && f.HtmlInfo != null && f.HtmlInfo.Tag == "input" && (f.HtmlInfo.Attributes?.Any() ?? false)) {