Commit 360af580 authored by wanglei's avatar wanglei

...

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