|
@@ -25,10 +25,9 @@ class AdMobRewardedAdManager: RewardedAdManager {
|
|
|
}
|
|
|
|
|
|
override fun request(activity: Activity, adUnitId: String) {
|
|
|
- rewardedVideoAdMap[adUnitId] ?: kotlin.run {
|
|
|
+ rewardedVideoAdMap[adUnitId] ?: run {
|
|
|
rewardedAdStatusMap[adUnitId] = RewardedAdStatus.NOT_INIT
|
|
|
-
|
|
|
- MobileAds.getRewardedVideoAdInstance(activity.application).apply {
|
|
|
+ rewardedVideoAdMap[adUnitId] = MobileAds.getRewardedVideoAdInstance(activity.application).apply {
|
|
|
rewardedVideoAdListener = object : RewardedVideoAdListener {
|
|
|
override fun onRewardedVideoAdClosed() {
|
|
|
adListeners.forEach {
|