[Android] Fix ClassCastException
Geoffrey Métais
git at videolan.org
Fri Jun 9 11:32:36 CEST 2017
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Jun 9 11:32:20 2017 +0200| [911fe3b7c8c0c33f3db6e1cd98e05e35ca540a0a] | committer: Geoffrey Métais
Fix ClassCastException
> https://code.videolan.org/videolan/vlc-android/commit/911fe3b7c8c0c33f3db6e1cd98e05e35ca540a0a
---
.../src/org/videolan/vlc/gui/audio/AudioAlbumsSongsFragment.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/audio/AudioAlbumsSongsFragment.java b/vlc-android/src/org/videolan/vlc/gui/audio/AudioAlbumsSongsFragment.java
index b79e774cd..795364251 100644
--- a/vlc-android/src/org/videolan/vlc/gui/audio/AudioAlbumsSongsFragment.java
+++ b/vlc-android/src/org/videolan/vlc/gui/audio/AudioAlbumsSongsFragment.java
@@ -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)
More information about the Android
mailing list