Skip to content

Commit

Permalink
Merge pull request #1238 from antonkesy/workaround-sd-crash
Browse files Browse the repository at this point in the history
Prevent app from crashing when SD-card data is not valid anymore.
  • Loading branch information
prathameshmm02 committed Feb 2, 2022
2 parents 597d307 + be24fb4 commit 666f52a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 666f52a

Please sign in to comment.