mirror of
https://github.com/bitwarden/mobile
synced 2025-12-05 23:53:33 +00:00
* Send feature for mobile * added fallback for KdfIterations * additional property exclusions for tests * support encryptedFileData as byte array comparison in SendServiceTests * formatting * requested changes * additional changes * change position of send service registration to match declaration order
20 lines
557 B
C#
20 lines
557 B
C#
using Xamarin.Forms;
|
|
|
|
namespace Bit.App.Pages
|
|
{
|
|
public class SendGroupingsPageListItemSelector : DataTemplateSelector
|
|
{
|
|
public DataTemplate SendTemplate { get; set; }
|
|
public DataTemplate GroupTemplate { get; set; }
|
|
|
|
protected override DataTemplate OnSelectTemplate(object item, BindableObject container)
|
|
{
|
|
if (item is SendGroupingsPageListItem listItem)
|
|
{
|
|
return listItem.Send != null ? SendTemplate : GroupTemplate;
|
|
}
|
|
return null;
|
|
}
|
|
}
|
|
}
|