Commit 3716dc55 authored by Geoffrey Métais's avatar Geoffrey Métais

Audio adapter: fix logic fail

(cherry picked from commit b1b1ae7c)
parent 7b6bccf5
...@@ -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() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment