fix(yandex-ads): 광고 후 재생 액션을 유지한다

This commit is contained in:
Yu Sung
2026-04-30 14:38:59 +09:00
parent 5823f6ddb2
commit 51ffe09125
2 changed files with 42 additions and 2 deletions

View File

@@ -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 {