mirror of
https://github.com/ultrasonic/ultrasonic
synced 2025-02-16 19:50:35 +01:00
Really fixed getSectionName
This commit is contained in:
parent
7068477e23
commit
d98360d3fe
@ -143,7 +143,13 @@ class ArtistRowAdapter(
|
||||
}
|
||||
|
||||
override fun getSectionName(position: Int): String {
|
||||
return getSectionFromName(artistList[position].name ?: " ")
|
||||
var listPosition = if (shouldShowHeader) position - 1 else position
|
||||
|
||||
// Show the first artist's initial in the popup when the list is
|
||||
// scrolled up to the "Select Folder" row
|
||||
if (listPosition < 0) listPosition = 0
|
||||
|
||||
return getSectionFromName(artistList[listPosition].name ?: " ")
|
||||
}
|
||||
|
||||
private fun getSectionForArtist(artistPosition: Int): String {
|
||||
|
Loading…
x
Reference in New Issue
Block a user