Commit 81c94032 authored by leichao.gao's avatar leichao.gao

update

parents fb9c5948 01673468
...@@ -152,10 +152,14 @@ object AdMaxInterstitialUtils { ...@@ -152,10 +152,14 @@ 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) {
return
}
if (AdMaxInit.isAdMaxInit.get()) { if (AdMaxInit.isAdMaxInit.get()) {
LogEx.logDebug(TAG, "loadInterstitialAd") LogEx.logDebug(TAG, "loadInterstitialAd")
interstitialAd?.loadAd() interstitialAd?.loadAd()
......
...@@ -125,11 +125,15 @@ object AdMaxOpenUtils { ...@@ -125,11 +125,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