fix(yandex-ads): 광고 후 재생 액션을 유지한다
This commit is contained in:
@@ -238,6 +238,7 @@ final class YandexInterstitialAdManager: NSObject {
|
||||
return
|
||||
}
|
||||
|
||||
loadedAd.delegate = self
|
||||
interstitialAd = loadedAd
|
||||
} catch {
|
||||
if currentPlacement == placement {
|
||||
@@ -259,14 +260,13 @@ final class YandexInterstitialAdManager: NSObject {
|
||||
}
|
||||
|
||||
pendingAction = action
|
||||
self.interstitialAd = nil
|
||||
interstitialAd.delegate = self
|
||||
interstitialAd.show(from: presenter)
|
||||
}
|
||||
|
||||
private func completePendingAction() {
|
||||
let action = pendingAction
|
||||
pendingAction = nil
|
||||
interstitialAd = nil
|
||||
action?()
|
||||
|
||||
if let currentPlacement {
|
||||
|
||||
Reference in New Issue
Block a user