Commit fecada1c authored by wanglei's avatar wanglei

启动页

parent c689325c
......@@ -191,6 +191,13 @@ class SplashActivity : BaseActivity<ActivitySplashBinding>() {
oneClickStart = true
ifAgreePrivacy = true
(application as MyApplication).initApp()
if (ConfigHelper.admobTrueMaxFlase) {
AdmobNativeUtils.loadNativeAd()
AdmobInterstitialUtils.loadInterstitialAd(this)
} else {
AdMaxOpenUtils.loadAppOpenAd(this)
AdMaxInterstitialUtils.loadInterstitialAd(this)
}
binding.llStart.visibility = View.GONE
binding.llProgress.visibility = View.VISIBLE
job = startProgress()
......
......@@ -150,6 +150,7 @@ object AdMaxOpenUtils {
obj1.put("ad_unit", "openAd")
EventUtils.event("ad_prepare_show", ext = obj1)
appOpenAd?.showAd()
loadingListener = null
}
}
}
......
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