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

update

parents fb9c5948 01673468
......@@ -152,10 +152,14 @@ object AdMaxInterstitialUtils {
}
fun loadInterstitialAd(activity: Activity) {
setListener(activity)
if (!AdDisplayUtils.getInstance().shouldShowAd()) {
return
}
setListener(activity)
if (interstitialAd?.isReady == true) {
return
}
if (AdMaxInit.isAdMaxInit.get()) {
LogEx.logDebug(TAG, "loadInterstitialAd")
interstitialAd?.loadAd()
......
......@@ -125,11 +125,15 @@ object AdMaxOpenUtils {
}
fun loadAppOpenAd(activity: Activity) {
setListener(activity)
if (!AdDisplayUtils.getInstance().shouldShowAd()) {
LogEx.logDebug(TAG, "!shouldShowAd")
return
}
setListener(activity)
if (appOpenAd?.isReady == true) {
return
}
LogEx.logDebug(TAG, "loadAppOpenAd1")
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