1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-15 15:53:44 +00:00

add support for card filling

This commit is contained in:
Kyle Spearrin
2017-11-18 15:09:09 -05:00
parent 4b24fe1bf4
commit c45a77d538
8 changed files with 248 additions and 97 deletions

View File

@@ -34,7 +34,8 @@ namespace Bit.Android.Autofill
parser.Parse();
if(string.IsNullOrWhiteSpace(parser.Uri) || parser.Uri == "androidapp://com.x8bit.bitwarden" ||
parser.Uri == "androidapp://android" || !parser.FieldCollection.FillableForLogin)
parser.Uri == "androidapp://android" ||
(!parser.FieldCollection.FillableForLogin && !parser.FieldCollection.FillableForCard))
{
return;
}
@@ -58,8 +59,8 @@ namespace Bit.Android.Autofill
}
// build response
var items = await AutofillHelpers.GetFillItemsAsync(_cipherService, parser.Uri);
var response = AutofillHelpers.BuildFillResponse(this, parser.FieldCollection, items);
var items = await AutofillHelpers.GetFillItemsAsync(parser, _cipherService);
var response = AutofillHelpers.BuildFillResponse(this, parser, items);
callback.OnSuccess(response);
}