diff --git a/src/Android/Autofill/FieldCollection.cs b/src/Android/Autofill/FieldCollection.cs index 2f7b74904..789699cf7 100644 --- a/src/Android/Autofill/FieldCollection.cs +++ b/src/Android/Autofill/FieldCollection.cs @@ -14,7 +14,6 @@ namespace Bit.Android.Autofill private HashSet _ignoreSearchTerms = new HashSet { "search", "find", "recipient" }; private HashSet _passwordTerms = new HashSet { "password", "pswd" }; - public HashSet Ids { get; private set; } = new HashSet(); public List AutofillIds { get; private set; } = new List(); public SaveDataType SaveType { @@ -35,8 +34,6 @@ namespace Bit.Android.Autofill public HashSet Hints { get; private set; } = new HashSet(); public HashSet FocusedHints { get; private set; } = new HashSet(); public List Fields { get; private set; } = new List(); - public IDictionary IdToFieldMap { get; private set; } = - new Dictionary(); public IDictionary> HintToFieldsMap { get; private set; } = new Dictionary>(); public List IgnoreAutofillIds { get; private set; } = new List(); @@ -123,19 +120,13 @@ namespace Bit.Android.Autofill public void Add(Field field) { - if(Ids.Contains(field.Id)) + if(Fields.Contains(field)) { return; } _passwordFields = _usernameFields = null; - if(field.Id > -1) - { - Ids.Add(field.Id); - IdToFieldMap.Add(field.Id, field); - } - Fields.Add(field); AutofillIds.Add(field.AutofillId);