mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-10-30 22:07:57 +01:00 
			
		
		
		
	Fix splash screen icon on Android 12 (#5565)
* Use Core Splashscreen for splashscreen stuff * Keep splash screen until activity ready Ready as in the data inside starting screen is finished showing * Use custom splash screen exit animation on older android version * Add splash screen minimum duration to prevent exit jank * Fix broken AMOLED theme * Improvements
This commit is contained in:
		| @@ -1,12 +1,8 @@ | ||||
| <?xml version="1.0" encoding="utf-8"?> | ||||
| <layer-list xmlns:android="http://schemas.android.com/apk/res/android"> | ||||
| 
 | ||||
|     <item android:drawable="@color/splash" /> | ||||
| 
 | ||||
|     <item | ||||
|         android:width="72dp" | ||||
|         android:height="72dp" | ||||
|         android:drawable="@drawable/ic_tachi" | ||||
|         android:gravity="center" /> | ||||
| 
 | ||||
| </layer-list> | ||||
| @@ -178,8 +178,10 @@ | ||||
|     <!--===============--> | ||||
|  | ||||
|     <!--== Splash Theme ==--> | ||||
|     <style name="Theme.Splash" parent="Theme.Tachiyomi"> | ||||
|         <item name="android:windowBackground">@drawable/splash_background</item> | ||||
|     <style name="Theme.Tachiyomi.SplashScreen" parent="Theme.SplashScreen"> | ||||
|         <item name="windowSplashScreenAnimatedIcon">@drawable/ic_tachi_splash</item> | ||||
|         <item name="windowSplashScreenBackground">@color/splash</item> | ||||
|         <item name="postSplashScreenTheme">@style/Theme.Tachiyomi</item> | ||||
|         <item name="android:statusBarColor">@android:color/transparent</item> | ||||
|         <item name="android:navigationBarColor">@android:color/transparent</item> | ||||
|         <item name="android:windowLightStatusBar">false</item> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user