Commit 521bcfc3 authored by wanglei's avatar wanglei

...

parent 6f5d2e91
...@@ -152,6 +152,9 @@ object AdMaxInterstitialUtils { ...@@ -152,6 +152,9 @@ object AdMaxInterstitialUtils {
fun loadInterstitialAd(activity: Activity) { fun loadInterstitialAd(activity: Activity) {
setListener(activity) setListener(activity)
if (!AdDisplayUtils.getInstance().shouldShowAd()) {
return
}
if (AdMaxInit.isAdMaxInit.get()) { if (AdMaxInit.isAdMaxInit.get()) {
LogEx.logDebug(TAG, "loadInterstitialAd") LogEx.logDebug(TAG, "loadInterstitialAd")
interstitialAd?.loadAd() interstitialAd?.loadAd()
......
...@@ -129,7 +129,6 @@ object AdMaxOpenUtils { ...@@ -129,7 +129,6 @@ object AdMaxOpenUtils {
setListener(activity) setListener(activity)
if (!AdDisplayUtils.getInstance().shouldShowAd()) { if (!AdDisplayUtils.getInstance().shouldShowAd()) {
LogEx.logDebug(TAG, "!shouldShowAd") LogEx.logDebug(TAG, "!shouldShowAd")
onHidden?.invoke()
return return
} }
......
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