From 93cae0e9cc4dba4cada844d8b310b92eb100c171 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Mon, 16 Apr 2018 09:00:51 -0400 Subject: [PATCH] dont check ids --- src/Android/Autofill/FieldCollection.cs | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) 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);