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