} else {
return 0;
}
}
public int getAdsCountToPublish(){
<BUG>int noOfAds = Math.min(adFetcher.getFetchedAdsCount(),
mAdapter.getItemCount() / getNoOfDataBetweenAds());
return Math.min(noOfAds, getLimitOfAds());
</BUG>
}

} else {
return 0;
}
}
public int getAdsCountToPublish(){
int expected = 0;
if(mAdapter.getItemCount() > 0 && mAdapter.getItemCount()>= getOffsetValue()+1)
expected = (mAdapter.getItemCount() - getOffsetValue()) / getNoOfDataBetweenAds() + 1;
expected = Math.max(0, expected);
return Math.min(expected, getLimitOfAds());
}
