remove empty song placeholder and fix related null errors

This commit is contained in:
dkanada 2021-05-19 02:05:08 +09:00
commit 8f3ee30399
11 changed files with 84 additions and 60 deletions

View file

@ -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;
if (getItemViewType() == OFFSET_ITEM) return null;
return dataSet.get(getBindingAdapterPosition() - 1);
}