1
0
mirror of https://github.com/bitwarden/mobile synced 2026-01-06 10:34:07 +00:00

select URI match option from action sheet

This commit is contained in:
Kyle Spearrin
2018-03-06 11:58:02 -05:00
parent 0bccc8f0d5
commit fb6e488339
7 changed files with 154 additions and 12 deletions

View File

@@ -452,7 +452,7 @@ namespace Bit.App.Pages
TextColor = Colors.Primary
};
UrisSection.Add(AddUriCell);
UrisSection.Insert(0, Helpers.MakeUriCell(string.Empty, UrisSection));
UrisSection.Insert(0, Helpers.MakeUriCell(string.Empty, null, UrisSection, this));
}
else if(_type == CipherType.Card)
{
@@ -833,7 +833,7 @@ namespace Bit.App.Pages
private void AddUriCell_Tapped(object sender, EventArgs e)
{
var cell = Helpers.MakeUriCell(string.Empty, UrisSection);
var cell = Helpers.MakeUriCell(string.Empty, null, UrisSection, this);
if(cell != null)
{
UrisSection.Insert(UrisSection.Count - 1, cell);

View File

@@ -223,7 +223,8 @@ namespace Bit.App.Pages
foreach(var uri in Cipher.Login.Uris)
{
var value = uri.Uri?.Decrypt(Cipher.OrganizationId);
UrisSection.Insert(UrisSection.Count - 1, Helpers.MakeUriCell(value, UrisSection));
UrisSection.Insert(UrisSection.Count - 1,
Helpers.MakeUriCell(value, uri.Match, UrisSection, this));
}
}
}
@@ -930,7 +931,7 @@ namespace Bit.App.Pages
private void AddUriCell_Tapped(object sender, EventArgs e)
{
var cell = Helpers.MakeUriCell(string.Empty, UrisSection);
var cell = Helpers.MakeUriCell(string.Empty, null, UrisSection, this);
if(cell != null)
{
UrisSection.Insert(UrisSection.Count - 1, cell);