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

Fix ClassCastException

parent ddef865c
No related branches found
No related tags found
No related merge requests found
......@@ -243,7 +243,7 @@ public class AudioAlbumsSongsFragment extends BaseAudioBrowser implements SwipeR
if (useAllItems) {
ArrayList<MediaLibraryItem> items = new ArrayList<>();
startPosition = mSongsAdapter.getListWithPosition(items, position);
medias = (MediaWrapper[]) items.toArray();
medias = items.toArray(new MediaWrapper[items.size()]);
} else {
startPosition = 0;
if (mediaItem instanceof Album)
......
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