ignoreids

This commit is contained in:
Kyle Spearrin 2017-11-17 23:26:51 -05:00
parent e4012e4f87
commit 955fc97cb2
3 changed files with 7 additions and 0 deletions

View file

@ -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();
}

View file

@ -21,6 +21,7 @@ namespace Bit.Android.Autofill
new Dictionary<int, Field>();
public IDictionary<string, List<Field>> HintToFieldsMap { get; private set; } =
new Dictionary<string, List<Field>>();
public List<AutofillId> IgnoreAutofillIds { get; private set; } = new List<AutofillId>();
public List<Field> PasswordFields
{

View file

@ -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++)
{