1
0
mirror of https://github.com/bitwarden/mobile synced 2026-01-03 09:03:35 +00:00

set default uri on add cipher

This commit is contained in:
Kyle Spearrin
2018-03-26 17:06:58 -04:00
parent b5c80ea267
commit 5103c80e1e
2 changed files with 15 additions and 29 deletions

View File

@@ -258,7 +258,14 @@ namespace Bit.App.Pages
}
}
NameCell?.Entry.FocusWithDelay();
if(NameCell != null && string.IsNullOrWhiteSpace(NameCell.Entry.Text))
{
NameCell.Entry.FocusWithDelay();
}
else if(LoginUsernameCell != null && string.IsNullOrWhiteSpace(LoginUsernameCell.Entry.Text))
{
LoginUsernameCell.Entry.FocusWithDelay();
}
}
protected override void OnDisappearing()
@@ -440,7 +447,7 @@ namespace Bit.App.Pages
TextColor = Colors.Primary
};
UrisSection.Add(AddUriCell);
UrisSection.Insert(0, Helpers.MakeUriCell(string.Empty, null, UrisSection, this));
UrisSection.Insert(0, Helpers.MakeUriCell(_defaultUri ?? string.Empty, null, UrisSection, this));
}
else if(_type == CipherType.Card)
{