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

Forms update with CollectionView conversion (#1374)

* Forms update with CollectionView conversion

* updates

* removed unnecessary import
This commit is contained in:
Matt Portune
2021-05-13 14:36:20 -04:00
committed by GitHub
parent 29979f6b04
commit 1d4e742d66
53 changed files with 940 additions and 1483 deletions

View File

@@ -3,6 +3,7 @@ using Bit.App.Resources;
using Bit.Core.Models.View;
using Bit.Core.Utilities;
using System;
using Bit.App.Controls;
using Xamarin.Forms;
namespace Bit.App.Pages
@@ -119,15 +120,15 @@ namespace Bit.App.Pages
}
}
private async void RowSelected(object sender, SelectedItemChangedEventArgs e)
private async void RowSelected(object sender, SelectionChangedEventArgs e)
{
((ListView)sender).SelectedItem = null;
((ExtendedCollectionView)sender).SelectedItem = null;
if (!DoOnce())
{
return;
}
if (e.SelectedItem is CipherView cipher)
if (e.CurrentSelection is CipherView cipher)
{
await _vm.SelectCipherAsync(cipher);
}