You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
private AdView prefetchAds(int cntToPrefetch){
AdView last = null;
for (int i = 0; i < cntToPrefetch; i++){
final AdView item = AdViewHelper.getBannerAdView(mContext, adFetcher.takeNextAdPreset());
adFetcher.setupAd(item);
//50 ms throttling to prevent a high-load of server
new Handler(mContext.getMainLooper()).postDelayed(new Runnable() { @OverRide
public void run() {
adFetcher.fetchAd(item);
}
}, 50 * i);
last = item;
}
return last;
The text was updated successfully, but these errors were encountered:
private AdView prefetchAds(int cntToPrefetch){
AdView last = null;
for (int i = 0; i < cntToPrefetch; i++){
final AdView item = AdViewHelper.getBannerAdView(mContext, adFetcher.takeNextAdPreset());
adFetcher.setupAd(item);
//50 ms throttling to prevent a high-load of server
new Handler(mContext.getMainLooper()).postDelayed(new Runnable() {
@OverRide
public void run() {
adFetcher.fetchAd(item);
}
}, 50 * i);
last = item;
}
return last;
The text was updated successfully, but these errors were encountered: