1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-05 23:53:33 +00:00

added cards and other improvements to save

This commit is contained in:
Kyle Spearrin
2017-11-18 23:04:21 -05:00
parent c45a77d538
commit caff67b77d
11 changed files with 477 additions and 199 deletions

View File

@@ -33,6 +33,7 @@ namespace Bit.Android.Autofill
var autofillOptions = node.GetAutofillOptions();
if(autofillOptions != null && autofillOptions.Length > 0)
{
ListValue = node.AutofillValue.ListValue;
TextValue = autofillOptions[node.AutofillValue.ListValue];
}
}
@@ -44,6 +45,10 @@ namespace Bit.Android.Autofill
{
TextValue = node.AutofillValue.TextValue;
}
else if(node.AutofillValue.IsToggle)
{
ToggleValue = node.AutofillValue.ToggleValue;
}
}
}
@@ -69,24 +74,9 @@ namespace Bit.Android.Autofill
public List<string> AutofillOptions { get; set; }
public string TextValue { get; set; }
public long? DateValue { get; set; }
public int? ListValue { get; set; }
public bool? ToggleValue { get; set; }
public int GetAutofillOptionIndex(string value)
{
if(AutofillOptions != null)
{
for(var i = 0; i < AutofillOptions.Count; i++)
{
if(AutofillOptions[i].Equals(value))
{
return i;
}
}
}
return -1;
}
private void UpdateSaveTypeFromHints()
{
SaveType = SaveDataType.Generic;