1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-11-27 12:26:31 +01:00

group is case insensitive

This commit is contained in:
Kyle Spearrin 2017-11-27 22:25:51 -05:00
parent 616893955f
commit b62803a03a
2 changed files with 3 additions and 3 deletions

View File

@ -339,7 +339,8 @@ namespace Bit.App.Pages
private void LoadSections(Cipher[] ciphers, CancellationToken ct)
{
ct.ThrowIfCancellationRequested();
var sections = ciphers.GroupBy(c => c.NameGroup).Select(g => new Section<Cipher>(g.ToList(), g.Key));
var sections = ciphers.GroupBy(c => c.NameGroup.ToUpperInvariant())
.Select(g => new Section<Cipher>(g.ToList(), g.Key));
ct.ThrowIfCancellationRequested();
Device.BeginInvokeOnMainThread(() =>
{

View File

@ -72,8 +72,7 @@ namespace Bit.App.Pages
ItemsSource = PresentationSections,
HasUnevenRows = true,
GroupHeaderTemplate = new DataTemplate(() => new SectionHeaderViewCell(
nameof(Section<Grouping>.Name), nameof(Section<Grouping>.Count),
new Thickness(16, Helpers.OnPlatform(20, 12, 12), 16, 12))),
nameof(Section<Grouping>.Name), nameof(Section<Grouping>.Count), new Thickness(16, 12))),
ItemTemplate = new DataTemplate(() => new VaultGroupingViewCell())
};