mirror of
https://github.com/bitwarden/mobile.git
synced 2024-11-30 12:54:24 +01:00
group is case insensitive
This commit is contained in:
parent
616893955f
commit
b62803a03a
@ -339,7 +339,8 @@ namespace Bit.App.Pages
|
|||||||
private void LoadSections(Cipher[] ciphers, CancellationToken ct)
|
private void LoadSections(Cipher[] ciphers, CancellationToken ct)
|
||||||
{
|
{
|
||||||
ct.ThrowIfCancellationRequested();
|
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();
|
ct.ThrowIfCancellationRequested();
|
||||||
Device.BeginInvokeOnMainThread(() =>
|
Device.BeginInvokeOnMainThread(() =>
|
||||||
{
|
{
|
||||||
|
@ -72,8 +72,7 @@ namespace Bit.App.Pages
|
|||||||
ItemsSource = PresentationSections,
|
ItemsSource = PresentationSections,
|
||||||
HasUnevenRows = true,
|
HasUnevenRows = true,
|
||||||
GroupHeaderTemplate = new DataTemplate(() => new SectionHeaderViewCell(
|
GroupHeaderTemplate = new DataTemplate(() => new SectionHeaderViewCell(
|
||||||
nameof(Section<Grouping>.Name), nameof(Section<Grouping>.Count),
|
nameof(Section<Grouping>.Name), nameof(Section<Grouping>.Count), new Thickness(16, 12))),
|
||||||
new Thickness(16, Helpers.OnPlatform(20, 12, 12), 16, 12))),
|
|
||||||
ItemTemplate = new DataTemplate(() => new VaultGroupingViewCell())
|
ItemTemplate = new DataTemplate(() => new VaultGroupingViewCell())
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user