Commit f45689a8 authored by wanglei's avatar wanglei

...

parent a6f3fd3b
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
<activity <activity
android:name=".activity.SplashActivity" android:name=".activity.SplashActivity"
android:exported="true" android:exported="true"
android:launchMode="singleTop" android:launchMode="singleTask"
android:theme="@style/splash.theme"> android:theme="@style/splash.theme">
<intent-filter> <intent-filter>
<action android:name="android.intent.action.MAIN" /> <action android:name="android.intent.action.MAIN" />
......
...@@ -94,6 +94,7 @@ class SplashActivity : BaseActivity<ActivitySplashBinding>() { ...@@ -94,6 +94,7 @@ class SplashActivity : BaseActivity<ActivitySplashBinding>() {
Log.d(TAG, "max init suc") Log.d(TAG, "max init suc")
AdMaxOpenUtils.loadAppOpenAd(this) AdMaxOpenUtils.loadAppOpenAd(this)
AdMaxInterstitialUtils.loadInterstitialAd(this) AdMaxInterstitialUtils.loadInterstitialAd(this)
maxInitAction = null
} }
} }
job = startProgress() job = startProgress()
......
...@@ -77,8 +77,10 @@ object AdmobMaxHelper { ...@@ -77,8 +77,10 @@ object AdmobMaxHelper {
} }
} }
} else { } else {
if (!isAdInit.get()) {
BaseApplication.context.initAdMax() BaseApplication.context.initAdMax()
} }
} }
}
} }
\ No newline at end of file
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