feat: 删除欢迎界面图片

pull/123/head
kunfei 5 years ago
parent 5f2f5495d0
commit 30ddfe4952
  1. 12
      app/src/main/java/io/legado/app/ui/welcome/WelcomeActivity.kt

@ -1,6 +1,5 @@
package io.legado.app.ui.welcome package io.legado.app.ui.welcome
import android.animation.ValueAnimator
import android.content.Intent import android.content.Intent
import android.os.Bundle import android.os.Bundle
import com.github.houbb.opencc4j.util.ZhConverterUtil import com.github.houbb.opencc4j.util.ZhConverterUtil
@ -41,16 +40,7 @@ open class WelcomeActivity : BaseActivity(R.layout.activity_welcome) {
else -> null else -> null
} }
} }
val welAnimator = ValueAnimator.ofFloat(1f, 0f).setDuration(800) root_view.postDelayed({ startMainActivity() }, 200)
welAnimator.startDelay = 100
welAnimator.addUpdateListener { animation ->
val alpha = animation.animatedValue as Float
root_view.alpha = alpha
if (alpha < 0.6) {
startMainActivity()
}
}
welAnimator.start()
} }
private fun startMainActivity() { private fun startMainActivity() {

Loading…
Cancel
Save