mirror of
https://github.com/bitwarden/android.git
synced 2024-12-25 18:38:27 +03:00
ignoreids
This commit is contained in:
parent
e4012e4f87
commit
955fc97cb2
3 changed files with 7 additions and 0 deletions
|
@ -46,6 +46,7 @@ namespace Bit.Android.Autofill
|
||||||
}
|
}
|
||||||
|
|
||||||
AddSaveInfo(responseBuilder, fields);
|
AddSaveInfo(responseBuilder, fields);
|
||||||
|
responseBuilder.SetIgnoredIds(fields.IgnoreAutofillIds.ToArray());
|
||||||
return responseBuilder.Build();
|
return responseBuilder.Build();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -71,6 +72,7 @@ namespace Bit.Android.Autofill
|
||||||
var pendingIntent = PendingIntent.GetActivity(context, 0, intent, PendingIntentFlags.CancelCurrent);
|
var pendingIntent = PendingIntent.GetActivity(context, 0, intent, PendingIntentFlags.CancelCurrent);
|
||||||
responseBuilder.SetAuthentication(fields.AutofillIds.ToArray(), pendingIntent.IntentSender, view);
|
responseBuilder.SetAuthentication(fields.AutofillIds.ToArray(), pendingIntent.IntentSender, view);
|
||||||
AddSaveInfo(responseBuilder, fields);
|
AddSaveInfo(responseBuilder, fields);
|
||||||
|
responseBuilder.SetIgnoredIds(fields.IgnoreAutofillIds.ToArray());
|
||||||
return responseBuilder.Build();
|
return responseBuilder.Build();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -21,6 +21,7 @@ namespace Bit.Android.Autofill
|
||||||
new Dictionary<int, Field>();
|
new Dictionary<int, Field>();
|
||||||
public IDictionary<string, List<Field>> HintToFieldsMap { get; private set; } =
|
public IDictionary<string, List<Field>> HintToFieldsMap { get; private set; } =
|
||||||
new Dictionary<string, List<Field>>();
|
new Dictionary<string, List<Field>>();
|
||||||
|
public List<AutofillId> IgnoreAutofillIds { get; private set; } = new List<AutofillId>();
|
||||||
|
|
||||||
public List<Field> PasswordFields
|
public List<Field> PasswordFields
|
||||||
{
|
{
|
||||||
|
|
|
@ -72,6 +72,10 @@ namespace Bit.Android.Autofill
|
||||||
}
|
}
|
||||||
FieldCollection.Add(new Field(node));
|
FieldCollection.Add(new Field(node));
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
FieldCollection.IgnoreAutofillIds.Add(node.AutofillId);
|
||||||
|
}
|
||||||
|
|
||||||
for(var i = 0; i < node.ChildCount; i++)
|
for(var i = 0; i < node.ChildCount; i++)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue