fix: Status bar icons still transparent after splash

This commit is contained in:
ziro 2024-02-07 14:16:43 +07:00
parent 04078084bd
commit 2248891c0e
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6

View file

@ -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