1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-11-30 12:54:24 +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) public static void AddSaveInfo(FillResponse.Builder responseBuilder, FieldCollection fields)
{ {
var saveType = fields.SaveType;
var requiredIds = fields.GetRequiredSaveFields(); var requiredIds = fields.GetRequiredSaveFields();
if(saveType == SaveDataType.Generic || requiredIds.Length == 0) if(fields.SaveType == SaveDataType.Generic || requiredIds.Length == 0)
{ {
return; return;
} }
var saveBuilder = new SaveInfo.Builder(saveType, requiredIds); var saveBuilder = new SaveInfo.Builder(fields.SaveType, requiredIds);
var optionalIds = fields.GetOptionalSaveIds(); var optionalIds = fields.GetOptionalSaveIds();
if(optionalIds.Length > 0) if(optionalIds.Length > 0)
{ {