Commit 01673468 authored by wanglei's avatar wanglei

..加载广告问题

parent fa93ed46
...@@ -152,11 +152,12 @@ object AdMaxInterstitialUtils { ...@@ -152,11 +152,12 @@ object AdMaxInterstitialUtils {
} }
fun loadInterstitialAd(activity: Activity) { fun loadInterstitialAd(activity: Activity) {
setListener(activity)
if (!AdDisplayUtils.getInstance().shouldShowAd()) { if (!AdDisplayUtils.getInstance().shouldShowAd()) {
return return
} }
setListener(activity) if (interstitialAd?.isReady == true) {
if (!AdDisplayUtils.getInstance().shouldShowAd()) {
return return
} }
if (AdMaxInit.isAdMaxInit.get()) { if (AdMaxInit.isAdMaxInit.get()) {
......
...@@ -128,11 +128,15 @@ object AdMaxOpenUtils { ...@@ -128,11 +128,15 @@ object AdMaxOpenUtils {
} }
fun loadAppOpenAd(activity: Activity) { fun loadAppOpenAd(activity: Activity) {
setListener(activity)
if (!AdDisplayUtils.getInstance().shouldShowAd()) { if (!AdDisplayUtils.getInstance().shouldShowAd()) {
LogEx.logDebug(TAG, "!shouldShowAd") LogEx.logDebug(TAG, "!shouldShowAd")
return return
} }
setListener(activity) if (appOpenAd?.isReady == true) {
return
}
LogEx.logDebug(TAG, "loadAppOpenAd1") LogEx.logDebug(TAG, "loadAppOpenAd1")
if (AdMaxInit.isAdMaxInit.get()) { if (AdMaxInit.isAdMaxInit.get()) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment