mirror of
https://github.com/bitwarden/mobile
synced 2025-12-12 06:13:21 +00:00
exclude TextFlagMultiLine from autofill detection
This commit is contained in:
@@ -304,6 +304,13 @@ namespace Bit.Android.Autofill
|
|||||||
f.InputType.HasFlag(InputTypes.TextVariationVisiblePassword) ||
|
f.InputType.HasFlag(InputTypes.TextVariationVisiblePassword) ||
|
||||||
f.InputType.HasFlag(InputTypes.TextVariationWebPassword);
|
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" &&
|
if(!inputTypePassword && f.HtmlInfo != null && f.HtmlInfo.Tag == "input" &&
|
||||||
(f.HtmlInfo.Attributes?.Any() ?? false))
|
(f.HtmlInfo.Attributes?.Any() ?? false))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user