Merge pull request #1238 from antonkesy/workaround-sd-crash
Prevent app from crashing when SD-card data is not valid anymore.
This commit is contained in:
commit
666f52adb5
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