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