Merge pull request #680 from igrechuhin/ig-master

[ios] Optimized appwall handling.
This commit is contained in:
Vlad Mihaylenko 2015-11-23 19:32:30 +03:00
commit f70b2a6262

View file

@ -812,6 +812,8 @@ typedef NS_ENUM(NSUInteger, UserTouchesAction)
- (void)onLoadWithAppwallBanners:(NSArray *)appwallBanners appwallAd:(MTRGNativeAppwallAd *)appwallAd
{
if (![appwallAd isEqual:self.appWallAd])
return;
if (appwallBanners.count == 0)
self.appWallAd = nil;
[self.controlsManager refreshLayout];
@ -819,6 +821,8 @@ typedef NS_ENUM(NSUInteger, UserTouchesAction)
- (void)onNoAdWithReason:(NSString *)reason appwallAd:(MTRGNativeAppwallAd *)appwallAd
{
if (![appwallAd isEqual:self.appWallAd])
return;
self.appWallAd = nil;
}