mirror of
https://github.com/bitwarden/android.git
synced 2024-10-31 15:15:34 +03:00
Fix selecting ciphers in search not working (#1426)
This commit is contained in:
parent
df412e75d1
commit
0aed13a2cf
2 changed files with 5 additions and 3 deletions
|
@ -1,4 +1,5 @@
|
|||
using System;
|
||||
using System;
|
||||
using System.Linq;
|
||||
using Bit.App.Controls;
|
||||
using Bit.App.Resources;
|
||||
using Bit.Core.Models.View;
|
||||
|
@ -96,7 +97,7 @@ namespace Bit.App.Pages
|
|||
return;
|
||||
}
|
||||
|
||||
if (e.CurrentSelection is SendView send)
|
||||
if (e.CurrentSelection?.FirstOrDefault() is SendView send)
|
||||
{
|
||||
await _vm.SelectSendAsync(send);
|
||||
}
|
||||
|
|
|
@ -3,6 +3,7 @@ using Bit.App.Resources;
|
|||
using Bit.Core.Models.View;
|
||||
using Bit.Core.Utilities;
|
||||
using System;
|
||||
using System.Linq;
|
||||
using Bit.App.Controls;
|
||||
using Xamarin.Forms;
|
||||
|
||||
|
@ -128,7 +129,7 @@ namespace Bit.App.Pages
|
|||
return;
|
||||
}
|
||||
|
||||
if (e.CurrentSelection is CipherView cipher)
|
||||
if (e.CurrentSelection?.FirstOrDefault() is CipherView cipher)
|
||||
{
|
||||
await _vm.SelectCipherAsync(cipher);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue