check if dataSet postition is valid
workaround for #1187 True problem is probably dataSet getting updated too early
This commit is contained in:
parent
597d307c66
commit
be24fb446a
1 changed files with 1 additions and 1 deletions
|
@ -142,7 +142,7 @@ class SongFileAdapter(
|
|||
}
|
||||
|
||||
override fun getPopupText(position: Int): String {
|
||||
return getSectionName(position)
|
||||
return if (position >= dataSet.lastIndex) "" else getSectionName(position)
|
||||
}
|
||||
|
||||
private fun getSectionName(position: Int): String {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue