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

Audio adapter: fix logic fail

(cherry picked from commit b1b1ae7c)
parent 7b6bccf5
No related branches found
No related tags found
No related merge requests found
...@@ -150,7 +150,7 @@ public class AudioBrowserAdapter extends SortableAdapter<MediaLibraryItem, Audio ...@@ -150,7 +150,7 @@ public class AudioBrowserAdapter extends SortableAdapter<MediaLibraryItem, Audio
} }
private boolean isPositionValid(int position) { private boolean isPositionValid(int position) {
return position >= 0 || position < getDataset().size(); return position >= 0 && position < getDataset().size();
} }
public List<MediaLibraryItem> getAll() { public List<MediaLibraryItem> getAll() {
......
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