From 30ddfe495258dfb8fe03de6e92e00250d2516f8d Mon Sep 17 00:00:00 2001 From: kunfei Date: Sat, 29 Feb 2020 14:32:04 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=88=A0=E9=99=A4=E6=AC=A2=E8=BF=8E?= =?UTF-8?q?=E7=95=8C=E9=9D=A2=E5=9B=BE=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/io/legado/app/ui/welcome/WelcomeActivity.kt | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/app/src/main/java/io/legado/app/ui/welcome/WelcomeActivity.kt b/app/src/main/java/io/legado/app/ui/welcome/WelcomeActivity.kt index 5255d38b9..3a5924780 100644 --- a/app/src/main/java/io/legado/app/ui/welcome/WelcomeActivity.kt +++ b/app/src/main/java/io/legado/app/ui/welcome/WelcomeActivity.kt @@ -1,6 +1,5 @@ package io.legado.app.ui.welcome -import android.animation.ValueAnimator import android.content.Intent import android.os.Bundle import com.github.houbb.opencc4j.util.ZhConverterUtil @@ -41,16 +40,7 @@ open class WelcomeActivity : BaseActivity(R.layout.activity_welcome) { else -> null } } - val welAnimator = ValueAnimator.ofFloat(1f, 0f).setDuration(800) - welAnimator.startDelay = 100 - welAnimator.addUpdateListener { animation -> - val alpha = animation.animatedValue as Float - root_view.alpha = alpha - if (alpha < 0.6) { - startMainActivity() - } - } - welAnimator.start() + root_view.postDelayed({ startMainActivity() }, 200) } private fun startMainActivity() {