Fixed getSectionName

This commit is contained in:
Nite 2020-11-28 13:33:29 +01:00
parent c10d08b862
commit 7068477e23
No known key found for this signature in database
GPG Key ID: 1D1AD59B1C6386C1
1 changed files with 1 additions and 2 deletions

View File

@ -143,8 +143,7 @@ class ArtistRowAdapter(
}
override fun getSectionName(position: Int): String {
val listPosition = if (shouldShowHeader) position - 1 else position
return getSectionFromName(artistList[listPosition].name ?: " ")
return getSectionFromName(artistList[position].name ?: " ")
}
private fun getSectionForArtist(artistPosition: Int): String {