From 035140af732045bceea26bd1581f3b89215f0e8e Mon Sep 17 00:00:00 2001 From: alexzatsepin Date: Tue, 4 Apr 2017 11:42:39 +0300 Subject: [PATCH] [android] Fixed the so late loader registration which leads to timeout waiting for RB banner when it's no really needed --- android/src/com/mapswithme/maps/ads/CompoundNativeAdLoader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/src/com/mapswithme/maps/ads/CompoundNativeAdLoader.java b/android/src/com/mapswithme/maps/ads/CompoundNativeAdLoader.java index 2c650e187c..d2b2264af1 100644 --- a/android/src/com/mapswithme/maps/ads/CompoundNativeAdLoader.java +++ b/android/src/com/mapswithme/maps/ads/CompoundNativeAdLoader.java @@ -68,9 +68,9 @@ public class CompoundNativeAdLoader extends BaseNativeAdLoader implements Native throw new AssertionError("A banner id mustn't be empty!"); NativeAdLoader loader = Factory.createLoaderForBanner(banner, mCacheListener, mAdTracker); + mLoaders.add(loader); loader.setAdListener(this); loader.loadAd(context, banner.getId()); - mLoaders.add(loader); } }