mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
fix: Status bar icons still transparent after splash
This commit is contained in:
parent
04078084bd
commit
2248891c0e
1 changed files with 1 additions and 2 deletions
|
@ -704,9 +704,8 @@ open class MainActivity : BaseActivity<MainActivityBinding>() {
|
||||||
|
|
||||||
private fun setSplashScreenExitAnimation(splashScreen: SplashScreen?) {
|
private fun setSplashScreenExitAnimation(splashScreen: SplashScreen?) {
|
||||||
val root = findViewById<View>(android.R.id.content)
|
val root = findViewById<View>(android.R.id.content)
|
||||||
|
|
||||||
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.S && splashScreen != null) {
|
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.S && splashScreen != null) {
|
||||||
window.statusBarColor = Color.TRANSPARENT
|
|
||||||
window.navigationBarColor = Color.TRANSPARENT
|
|
||||||
|
|
||||||
splashScreen.setOnExitAnimationListener { splashProvider ->
|
splashScreen.setOnExitAnimationListener { splashProvider ->
|
||||||
// For some reason the SplashScreen applies (incorrect) Y translation to the iconView
|
// For some reason the SplashScreen applies (incorrect) Y translation to the iconView
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue