mirror of
https://github.com/bitwarden/android.git
synced 2024-10-31 15:15:34 +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 options = _lockOptions.Select(o => o.Key == _lockOptionValue ? $"✓ {o.Key}" : o.Key).ToArray();
|
||||||
var selection = await Page.DisplayActionSheet(AppResources.LockOptions, AppResources.Cancel, null, options);
|
var selection = await Page.DisplayActionSheet(AppResources.LockOptions, AppResources.Cancel, null, options);
|
||||||
if(selection == AppResources.Cancel)
|
if(selection == null || selection == AppResources.Cancel)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -173,16 +173,10 @@ namespace Bit.App.Pages
|
||||||
|
|
||||||
private async void CipherOptionsAsync(CipherView cipher)
|
private async void CipherOptionsAsync(CipherView cipher)
|
||||||
{
|
{
|
||||||
if(!(Page as BaseContentPage).DoOnce())
|
if((Page as BaseContentPage).DoOnce())
|
||||||
{
|
{
|
||||||
return;
|
await Utilities.AppHelpers.CipherListOptions(Page, cipher);
|
||||||
}
|
}
|
||||||
var option = await Page.DisplayActionSheet(cipher.Name, AppResources.Cancel, null, "1", "2");
|
|
||||||
if(option == AppResources.Cancel)
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
// TODO: process options
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue