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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user