From b62803a03aef7568134e37059de5b8f1545e3b15 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Mon, 27 Nov 2017 22:25:51 -0500 Subject: [PATCH] group is case insensitive --- src/App/Pages/Vault/VaultListCiphersPage.cs | 3 ++- src/App/Pages/Vault/VaultListGroupingsPage.cs | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/App/Pages/Vault/VaultListCiphersPage.cs b/src/App/Pages/Vault/VaultListCiphersPage.cs index 05c3a37b5..379890f39 100644 --- a/src/App/Pages/Vault/VaultListCiphersPage.cs +++ b/src/App/Pages/Vault/VaultListCiphersPage.cs @@ -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(g.ToList(), g.Key)); + var sections = ciphers.GroupBy(c => c.NameGroup.ToUpperInvariant()) + .Select(g => new Section(g.ToList(), g.Key)); ct.ThrowIfCancellationRequested(); Device.BeginInvokeOnMainThread(() => { diff --git a/src/App/Pages/Vault/VaultListGroupingsPage.cs b/src/App/Pages/Vault/VaultListGroupingsPage.cs index 08530f0be..4c383de57 100644 --- a/src/App/Pages/Vault/VaultListGroupingsPage.cs +++ b/src/App/Pages/Vault/VaultListGroupingsPage.cs @@ -72,8 +72,7 @@ namespace Bit.App.Pages ItemsSource = PresentationSections, HasUnevenRows = true, GroupHeaderTemplate = new DataTemplate(() => new SectionHeaderViewCell( - nameof(Section.Name), nameof(Section.Count), - new Thickness(16, Helpers.OnPlatform(20, 12, 12), 16, 12))), + nameof(Section.Name), nameof(Section.Count), new Thickness(16, 12))), ItemTemplate = new DataTemplate(() => new VaultGroupingViewCell()) };