Commit 360af580 authored by wanglei's avatar wanglei

...

parent 42fb66a4
...@@ -256,7 +256,7 @@ class SplashActivity : BaseActivity<ActivitySplashBinding>() { ...@@ -256,7 +256,7 @@ class SplashActivity : BaseActivity<ActivitySplashBinding>() {
val delayTime = 450L val delayTime = 450L
delay(delayTime) delay(delayTime)
processTime += delayTime processTime += delayTime
if (processTime >= Random.nextLong(2500, 3000)) { if (processTime >= 900L) {
if (!outTimeAdStart) { if (!outTimeAdStart) {
outTimeAdStart = true outTimeAdStart = true
outTimeAd() outTimeAd()
......
...@@ -68,7 +68,7 @@ object AdmobMaxHelper { ...@@ -68,7 +68,7 @@ object AdmobMaxHelper {
return return
} }
val adInterval = AppPreferences.getInstance().getString("adInterval", "0").toInt() val adInterval = AppPreferences.getInstance().getString("adInterval", "0").toInt()
if ((System.currentTimeMillis() - lastShowedOnHiddenTime) < adInterval * 1000) { if ((System.currentTimeMillis() - lastShowedOnHiddenTime) < adInterval * 1000 && lastShowedOnHiddenTime != 0L) {
onHidden?.invoke() onHidden?.invoke()
return 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