Fixed case comparison for contacts list headers
This commit is contained in:
parent
7528d4981e
commit
f62d90285f
2 changed files with 2 additions and 1 deletions
|
@ -14,6 +14,7 @@ Group changes to describe their impact on the project, as follows:
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
- Negative gain in audio settings is allowed again
|
- Negative gain in audio settings is allowed again
|
||||||
|
- Contacts list header case comparison
|
||||||
|
|
||||||
## [4.6.1] - 2022-02-14
|
## [4.6.1] - 2022-02-14
|
||||||
|
|
||||||
|
|
|
@ -105,7 +105,7 @@ class ContactsListAdapter(
|
||||||
val previousPosition = position - 1
|
val previousPosition = position - 1
|
||||||
return if (previousPosition >= 0) {
|
return if (previousPosition >= 0) {
|
||||||
val previousItemFirstLetter = getItem(previousPosition).name.first().toString()
|
val previousItemFirstLetter = getItem(previousPosition).name.first().toString()
|
||||||
previousItemFirstLetter != firstLetter
|
!firstLetter.equals(previousItemFirstLetter, ignoreCase = true)
|
||||||
} else true
|
} else true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue