forked from organicmaps/organicmaps
Merge pull request #680 from igrechuhin/ig-master
[ios] Optimized appwall handling.
This commit is contained in:
commit
f70b2a6262
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue