修复
This commit is contained in:
@@ -3,6 +3,7 @@ package io.legato.kazusa.ui.welcome
|
||||
import android.annotation.SuppressLint
|
||||
import android.content.Intent
|
||||
import android.os.Bundle
|
||||
import android.transition.Fade
|
||||
import androidx.core.app.ActivityOptionsCompat
|
||||
import androidx.core.content.ContextCompat.startActivity
|
||||
import androidx.core.view.postDelayed
|
||||
@@ -23,8 +24,12 @@ class SplashActivity : BaseActivity<ActivitySplashBinding>() {
|
||||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
super.onCreate(savedInstanceState)
|
||||
|
||||
window.exitTransition = null
|
||||
window.reenterTransition = null
|
||||
window.exitTransition = Fade().apply {
|
||||
duration = 300
|
||||
}
|
||||
window.reenterTransition = Fade().apply {
|
||||
duration = 300
|
||||
}
|
||||
|
||||
if (LocalConfig.isFirstOpenApp) {
|
||||
startActivity(
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
android:key="themeCategory"
|
||||
android:title="@string/theme"
|
||||
app:allowDividerAbove="true"
|
||||
app:allowDividerBelow="false"
|
||||
app:allowDividerBelow="true"
|
||||
app:iconSpaceReserved="false"
|
||||
app:layout="@layout/view_preference_category">
|
||||
|
||||
@@ -81,16 +81,30 @@
|
||||
app:allowDividerBelow="false"
|
||||
app:iconSpaceReserved="false" />
|
||||
|
||||
</io.legato.kazusa.lib.prefs.PreferenceCategory>
|
||||
|
||||
<io.legato.kazusa.lib.prefs.PreferenceCategory
|
||||
android:key="backgroundIma"
|
||||
android:title="@string/background_image"
|
||||
app:allowDividerAbove="false"
|
||||
app:allowDividerBelow="false"
|
||||
app:iconSpaceReserved="false"
|
||||
app:layout="@layout/view_preference_category">
|
||||
|
||||
<io.legato.kazusa.lib.prefs.Preference
|
||||
android:key="backgroundImage"
|
||||
android:title="@string/background_image" />
|
||||
android:title="浅色模式" />
|
||||
|
||||
<io.legato.kazusa.lib.prefs.Preference
|
||||
android:key="backgroundImageNight"
|
||||
android:title="深色模式" />
|
||||
|
||||
</io.legato.kazusa.lib.prefs.PreferenceCategory>
|
||||
|
||||
<io.legato.kazusa.lib.prefs.PreferenceCategory
|
||||
android:key="dayThemeCategory"
|
||||
android:title="@string/share"
|
||||
app:allowDividerAbove="true"
|
||||
app:allowDividerAbove="false"
|
||||
app:allowDividerBelow="false"
|
||||
app:iconSpaceReserved="false"
|
||||
app:layout="@layout/view_preference_category">
|
||||
|
||||
Reference in New Issue
Block a user