1
0
mirror of https://github.com/bitwarden/mobile synced 2025-12-22 03:03:46 +00:00

DoOnce helper

This commit is contained in:
Kyle Spearrin
2019-05-06 22:49:57 -04:00
parent 4ed12a859b
commit 5ef4c96ee7
3 changed files with 28 additions and 0 deletions

View File

@@ -76,12 +76,21 @@ namespace Bit.App.Pages
private void GoBack()
{
if(!DoOnce())
{
return;
}
Navigation.PopModalAsync(false);
}
private async void RowSelected(object sender, SelectedItemChangedEventArgs e)
{
((ListView)sender).SelectedItem = null;
if(!DoOnce())
{
return;
}
if(e.SelectedItem is CipherView cipher)
{
await _vm.SelectCipherAsync(cipher);