Commit 8288ab8e authored by maxiaoliang's avatar maxiaoliang

修改max广告点击返回时 广告跳过问题

parent dfdf4fe4
......@@ -101,13 +101,15 @@ class MyApplication : BaseApplication() {
val topActivity: Activity? = ActivityManagerUtils.getInstance().topActivity
val flag = if (topActivity == null) {
var flag = if (topActivity == null) {
true
} else {
ConfigHelper.noLoadingActivities
.all { !topActivity.localClassName.contains(it, true) }
}
if (activity.localClassName.contains("AppLovinFullscreenActivity")) {
flag = false
}
if (flag) {
if(ConfigHelper.admobTrueMaxFlase==0){
if (MaxAdUtils.isOpenAdLoaded()) {
......
......@@ -35,6 +35,7 @@ object ConfigHelper {
val noLoadingActivities = listOf(
"full", // 过滤全屏广告
"adActivity",
"AppLovinFullscreenActivity",
NewSplashActivity::class.java.simpleName
// 返回前台时不跳转启动页的 activity
)
......
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