Fixed OOB exception in the song adapter
This commit is contained in:
parent
5382e1a762
commit
9e7820f085
1 changed files with 2 additions and 1 deletions
|
|
@ -55,7 +55,8 @@ public class SongAdapter extends AbsMultiSelectAdapter<SongAdapter.ViewHolder, S
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public long getItemId(int position) {
|
public long getItemId(int position) {
|
||||||
return dataSet.get(position).id;
|
if (position == 0) return -1;
|
||||||
|
return dataSet.get(position - 1).id;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void loadDataSet() {
|
private void loadDataSet() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue