From 6e3c50bd5299e5cf13284fe1c8ac83dacd6e1d8a Mon Sep 17 00:00:00 2001 From: kunfei Date: Tue, 11 Feb 2020 16:37:28 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/AndroidManifest.xml | 14 ++++++++++++-- .../legado/app/ui/welcome/WelcomeActivity.kt | 18 +++++++----------- .../main/res/layout/activity_replace_rule.xml | 18 +++++++++--------- 3 files changed, 28 insertions(+), 22 deletions(-) diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 0f1381bf6..9d12312e4 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -27,9 +27,19 @@ android:theme="@style/AppTheme.Light" android:requestLegacyExternalStorage="false" tools:ignore="AllowBackup,GoogleAppIndexingWarning,UnusedAttribute"> + + + + + + + + android:name=".ui.welcome.Icon1Activity" + android:enabled="false"> 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 4a1e12f82..90245b5bc 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 @@ -13,7 +13,7 @@ import io.legado.app.utils.getPrefBoolean import kotlinx.android.synthetic.main.activity_welcome.* import org.jetbrains.anko.startActivity -class WelcomeActivity : BaseActivity(R.layout.activity_welcome) { +open class WelcomeActivity : BaseActivity(R.layout.activity_welcome) { override fun onActivityCreated(savedInstanceState: Bundle?) { iv_bg.setColorFilter(accentColor) @@ -37,19 +37,15 @@ class WelcomeActivity : BaseActivity(R.layout.activity_welcome) { finish() } - override fun onAnimationEnd(animation: Animator) { + override fun onAnimationEnd(animation: Animator) = Unit - } - - override fun onAnimationCancel(animation: Animator) { - - } + override fun onAnimationCancel(animation: Animator) = Unit - override fun onAnimationRepeat(animation: Animator) { - - } + override fun onAnimationRepeat(animation: Animator) = Unit }) welAnimator.start() } -} \ No newline at end of file +} + +class Icon1Activity : WelcomeActivity() \ No newline at end of file diff --git a/app/src/main/res/layout/activity_replace_rule.xml b/app/src/main/res/layout/activity_replace_rule.xml index cefeba9d0..32c44cc24 100644 --- a/app/src/main/res/layout/activity_replace_rule.xml +++ b/app/src/main/res/layout/activity_replace_rule.xml @@ -1,27 +1,27 @@ - + android:layout_weight="1" /> - + + +