</BUG>
boolean newAlbum = false;
if (track != null) {
TrackModel previousTrack;
if (position > 0) {
<BUG>previousTrack = (TrackModel)getItem(position - 1);
</BUG>
if (previousTrack != null) {
newAlbum = !previousTrack.getTrackAlbumKey().equals(track.getTrackAlbumKey());
}

public long getItemId(int position) {
return position;
}
@Override
public int getItemViewType(int position) {
TrackModel track = (TrackModel) getItem(position);
boolean newAlbum = false;
if (track != null) {
TrackModel previousTrack;
if (position > 0) {
previousTrack = (TrackModel) getItem(position - 1);
if (previousTrack != null) {
newAlbum = !previousTrack.getTrackAlbumKey().equals(track.getTrackAlbumKey());
}
