mirror of
https://github.com/gedoor/legado.git
synced 2024-09-03 09:55:00 +08:00
优化
This commit is contained in:
parent
f80c34691b
commit
73aa53a363
@ -7,7 +7,9 @@ import android.os.Bundle
|
||||
import io.legado.app.R
|
||||
import io.legado.app.base.BaseActivity
|
||||
import io.legado.app.lib.theme.accentColor
|
||||
import io.legado.app.ui.book.read.ReadBookActivity
|
||||
import io.legado.app.ui.main.MainActivity
|
||||
import io.legado.app.utils.getPrefBoolean
|
||||
import kotlinx.android.synthetic.main.activity_welcome.*
|
||||
import org.jetbrains.anko.startActivity
|
||||
|
||||
@ -28,7 +30,11 @@ class WelcomeActivity : BaseActivity(R.layout.activity_welcome) {
|
||||
}
|
||||
welAnimator.addListener(object : Animator.AnimatorListener {
|
||||
override fun onAnimationStart(animation: Animator) {
|
||||
startActivity<MainActivity>()
|
||||
if (getPrefBoolean(getString(R.string.pk_default_read))) {
|
||||
startActivity<ReadBookActivity>()
|
||||
} else {
|
||||
startActivity<MainActivity>()
|
||||
}
|
||||
finish()
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user