1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-11-04 08:50:18 +01:00

no savetype var

This commit is contained in:
Kyle Spearrin 2017-11-20 22:39:33 -05:00
parent 5606a0a968
commit e3e833d8c0

View File

@ -116,14 +116,13 @@ namespace Bit.Android.Autofill
public static void AddSaveInfo(FillResponse.Builder responseBuilder, FieldCollection fields)
{
var saveType = fields.SaveType;
var requiredIds = fields.GetRequiredSaveFields();
if(saveType == SaveDataType.Generic || requiredIds.Length == 0)
if(fields.SaveType == SaveDataType.Generic || requiredIds.Length == 0)
{
return;
}
var saveBuilder = new SaveInfo.Builder(saveType, requiredIds);
var saveBuilder = new SaveInfo.Builder(fields.SaveType, requiredIds);
var optionalIds = fields.GetOptionalSaveIds();
if(optionalIds.Length > 0)
{