Commit 27338773 authored by wanglei's avatar wanglei

...

parent 0537933d
......@@ -126,15 +126,23 @@ class MyApplication : BaseApplication() {
if (flag && !isInterOpenShowing) {
if (AdmobMaxHelper.isOpenAdLoaded()) {
var loaded: Boolean = true
AdmobMaxHelper.admobMaxShowOpenAd(activity, {
loaded = it
}, {
val sp = AppPreferences.getInstance().getString("splashShowInter", "0").toInt()
if (sp == 1 && !loaded) {
AdmobMaxHelper.admobMaxShowInterstitialAd(activity)
}
})
// var loaded: Boolean = true
// AdmobMaxHelper.admobMaxShowOpenAd(activity, {
// loaded = it
// }, {
// val sp = AppPreferences.getInstance().getString("splashShowInter", "0").toInt()
// if (sp == 1 && !loaded) {
// AdmobMaxHelper.admobMaxShowInterstitialAd(activity)
// }
// })
topActivity?.startActivity(
Intent(
topActivity,
SplashActivity::class.java
).apply {
putExtra("isHotLaunch", true)
putExtra("type", -1)
})
} else {
topActivity?.startActivity(
Intent(
......
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