Commit c5a4c85a authored by wanglei's avatar wanglei

...

parent 65b833d7
......@@ -52,15 +52,15 @@ object AdmobMaxHelper {
return
}
if (getSpAdmobTrueMaxFalse()) {
LogEx.logDebug(TAG, "init sp Admob")
if (!isAdInit.get()) {
LogEx.logDebug(TAG, "init sp Admob")
MobileAds.initialize(BaseApplication.context) { initializationStatus ->
isAdInit.set(true)
}
}
} else {
LogEx.logDebug(TAG, "init sp AdMax")
if (!isAdInit.get()) {
LogEx.logDebug(TAG, "init sp AdMax")
BaseApplication.context.initAdMax()
}
}
......@@ -79,7 +79,7 @@ object AdmobMaxHelper {
var lastShowedOnHiddenTime = 0L
fun admobMaxShowInterstitialAd(activity: Activity, isLoading: Boolean = true, onHidden: (() -> Unit)? = null) {
if (isBlack) {
EventUtils.event("ad_black","interAd")
EventUtils.event("ad_black", "interAd")
onHidden?.invoke()
return
}
......@@ -112,7 +112,7 @@ object AdmobMaxHelper {
onHidden: (() -> Unit)? = null,
) {
if (isBlack) {
EventUtils.event("ad_black","openAd")
EventUtils.event("ad_black", "openAd")
onHidden?.invoke()
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