add empty constructor for song model
This commit is contained in:
parent
295df08a46
commit
632061bb7f
7 changed files with 21 additions and 15 deletions
|
|
@ -90,7 +90,7 @@ public abstract class AbsOffsetSongAdapter extends SongAdapter {
|
|||
@Override
|
||||
protected Song getSong() {
|
||||
// return empty song just to be safe
|
||||
if (getItemViewType() == OFFSET_ITEM) return Song.EMPTY_SONG;
|
||||
if (getItemViewType() == OFFSET_ITEM) return Song.EMPTY;
|
||||
return dataSet.get(getAdapterPosition() - 1);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue