private boolean isAdPosition(int position) {
<BUG>return (position + 1) % (getNoOfDataBetweenAds() + 1) == 0;
}</BUG>
private boolean isAdAvailable(int position) {
<BUG>int adIndex = getAdIndex(position);
return position >= getNoOfDataBetweenAds()
&& adIndex >= 0
&& adIndex < getLimitOfAds();</BUG>
}
public void destroyAds() {

private boolean isAdPosition(int position) {
int result = (position - getOffsetValue()) % (getNoOfDataBetweenAds() + 1);
return result == 0;
}
private int getOffsetValue() {
return getFirstAdIndex() > 0 ? getFirstAdIndex() : 0;
}
private boolean isAdAvailable(int position) {
int adIndex = getAdIndex(position);
int firstAdPos = getOffsetValue();
return position >= firstAdPos && adIndex >= 0 && adIndex < getLimitOfAds();
}
public void destroyAds() {
