Commit b1b1ae7c authored by Geoffrey Métais's avatar Geoffrey Métais

Audio adapter: fix logic fail

parent d533f129
......@@ -150,7 +150,7 @@ public class AudioBrowserAdapter extends SortableAdapter<MediaLibraryItem, Audio
}
private boolean isPositionValid(int position) {
return position >= 0 || position < getDataset().size();
return position >= 0 && position < getDataset().size();
}
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