mirror of
https://github.com/bitwarden/android.git
synced 2024-12-25 02:18:27 +03:00
name short
This commit is contained in:
parent
0b1c0be0f0
commit
8fc5ad099b
2 changed files with 3 additions and 2 deletions
|
@ -187,6 +187,7 @@ namespace Bit.App.Models.Page
|
||||||
}
|
}
|
||||||
|
|
||||||
public string Name { get; set; }
|
public string Name { get; set; }
|
||||||
|
public string NameShort => string.IsNullOrWhiteSpace(Name) || Name.Length == 0 ? "-" : Name[0].ToString();
|
||||||
}
|
}
|
||||||
|
|
||||||
public class GroupingOrCipher
|
public class GroupingOrCipher
|
||||||
|
|
|
@ -81,8 +81,8 @@ namespace Bit.App.Pages
|
||||||
ItemsSource = PresentationSections,
|
ItemsSource = PresentationSections,
|
||||||
HasUnevenRows = true,
|
HasUnevenRows = true,
|
||||||
GroupHeaderTemplate = new DataTemplate(() => new SectionHeaderViewCell(
|
GroupHeaderTemplate = new DataTemplate(() => new SectionHeaderViewCell(
|
||||||
nameof(Section<GroupingOrCipher>.Name), nameof(Section<GroupingOrCipher>.Count))),
|
nameof(Section<Grouping>.Name), nameof(Section<Grouping>.Count))),
|
||||||
GroupShortNameBinding = new Binding(nameof(Section<GroupingOrCipher>.Name)),
|
GroupShortNameBinding = new Binding(nameof(Section<Grouping>.NameShort)),
|
||||||
ItemTemplate = new GroupingOrCipherDataTemplateSelector(this)
|
ItemTemplate = new GroupingOrCipherDataTemplateSelector(this)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue