Fixed case comparison for contacts list headers

This commit is contained in:
Sylvain Berfini 2022-02-22 13:44:35 +01:00
parent 7528d4981e
commit f62d90285f
2 changed files with 2 additions and 1 deletions

View file

@ -14,6 +14,7 @@ Group changes to describe their impact on the project, as follows:
### Fixed
- Negative gain in audio settings is allowed again
- Contacts list header case comparison
## [4.6.1] - 2022-02-14

View file

@ -105,7 +105,7 @@ class ContactsListAdapter(
val previousPosition = position - 1
return if (previousPosition >= 0) {
val previousItemFirstLetter = getItem(previousPosition).name.first().toString()
previousItemFirstLetter != firstLetter
!firstLetter.equals(previousItemFirstLetter, ignoreCase = true)
} else true
}