mirror of
https://github.com/bitwarden/android.git
synced 2024-12-24 18:08:26 +03:00
CipherListOptions on search page
This commit is contained in:
parent
0aa1359ad4
commit
cf2308a12d
2 changed files with 3 additions and 9 deletions
|
@ -189,7 +189,7 @@ namespace Bit.App.Pages
|
|||
{
|
||||
var options = _lockOptions.Select(o => o.Key == _lockOptionValue ? $"✓ {o.Key}" : o.Key).ToArray();
|
||||
var selection = await Page.DisplayActionSheet(AppResources.LockOptions, AppResources.Cancel, null, options);
|
||||
if(selection == AppResources.Cancel)
|
||||
if(selection == null || selection == AppResources.Cancel)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -173,16 +173,10 @@ namespace Bit.App.Pages
|
|||
|
||||
private async void CipherOptionsAsync(CipherView cipher)
|
||||
{
|
||||
if(!(Page as BaseContentPage).DoOnce())
|
||||
if((Page as BaseContentPage).DoOnce())
|
||||
{
|
||||
return;
|
||||
}
|
||||
var option = await Page.DisplayActionSheet(cipher.Name, AppResources.Cancel, null, "1", "2");
|
||||
if(option == AppResources.Cancel)
|
||||
{
|
||||
return;
|
||||
}
|
||||
// TODO: process options
|
||||
await Utilities.AppHelpers.CipherListOptions(Page, cipher);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue