Skip to content
Snippets Groups Projects
Commit d9d349a7 authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Audio browser: Fix IndexOutOfBoundsException

(cherry picked from commit a7afe6c6)
parent e077e792
No related branches found
No related tags found
No related merge requests found
......@@ -173,7 +173,7 @@ class AudioBrowserAdapter @JvmOverloads constructor(
}
override fun getItem(position: Int): MediaLibraryItem? {
return super.getItem(position)
return if (position in 0 until itemCount) super.getItem(position) else null
}
override fun getItemViewType(position: Int): Int {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment