mirror of
https://github.com/bitwarden/mobile
synced 2025-12-21 18:53:29 +00:00
ignoreids
This commit is contained in:
@@ -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++)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user