diff --git a/src/Android/Autofill/AutofillHelpers.cs b/src/Android/Autofill/AutofillHelpers.cs index 9476c9169..5bf44bc61 100644 --- a/src/Android/Autofill/AutofillHelpers.cs +++ b/src/Android/Autofill/AutofillHelpers.cs @@ -46,6 +46,7 @@ namespace Bit.Android.Autofill } AddSaveInfo(responseBuilder, fields); + responseBuilder.SetIgnoredIds(fields.IgnoreAutofillIds.ToArray()); return responseBuilder.Build(); } @@ -71,6 +72,7 @@ namespace Bit.Android.Autofill var pendingIntent = PendingIntent.GetActivity(context, 0, intent, PendingIntentFlags.CancelCurrent); responseBuilder.SetAuthentication(fields.AutofillIds.ToArray(), pendingIntent.IntentSender, view); AddSaveInfo(responseBuilder, fields); + responseBuilder.SetIgnoredIds(fields.IgnoreAutofillIds.ToArray()); return responseBuilder.Build(); } diff --git a/src/Android/Autofill/FieldCollection.cs b/src/Android/Autofill/FieldCollection.cs index fccc74864..c4af4e483 100644 --- a/src/Android/Autofill/FieldCollection.cs +++ b/src/Android/Autofill/FieldCollection.cs @@ -21,6 +21,7 @@ namespace Bit.Android.Autofill new Dictionary(); public IDictionary> HintToFieldsMap { get; private set; } = new Dictionary>(); + public List IgnoreAutofillIds { get; private set; } = new List(); public List PasswordFields { diff --git a/src/Android/Autofill/Parser.cs b/src/Android/Autofill/Parser.cs index 67cdfce90..08a0a4b93 100644 --- a/src/Android/Autofill/Parser.cs +++ b/src/Android/Autofill/Parser.cs @@ -72,6 +72,10 @@ namespace Bit.Android.Autofill } FieldCollection.Add(new Field(node)); } + else + { + FieldCollection.IgnoreAutofillIds.Add(node.AutofillId); + } for(var i = 0; i < node.ChildCount; i++) {