mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-10 14:57:47 +01:00
Fix transparent system bars after MainActivity recreated (#5574)
This commit is contained in:
parent
dce3049446
commit
fece92e15a
1 changed files with 2 additions and 2 deletions
|
@ -288,7 +288,7 @@ class MainActivity : BaseViewBindingActivity<MainActivityBinding>() {
|
|||
ViewCompat.requestApplyInsets(binding.root)
|
||||
}
|
||||
|
||||
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.S) {
|
||||
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.S && splashScreen != null) {
|
||||
val oldStatusColor = window.statusBarColor
|
||||
val oldNavigationColor = window.navigationBarColor
|
||||
window.statusBarColor = Color.TRANSPARENT
|
||||
|
@ -300,7 +300,7 @@ class MainActivity : BaseViewBindingActivity<MainActivityBinding>() {
|
|||
wicc.isAppearanceLightStatusBars = false
|
||||
wicc.isAppearanceLightNavigationBars = false
|
||||
|
||||
splashScreen?.setOnExitAnimationListener { splashProvider ->
|
||||
splashScreen.setOnExitAnimationListener { splashProvider ->
|
||||
// For some reason the SplashScreen applies (incorrect) Y translation to the iconView
|
||||
splashProvider.iconView.translationY = 0F
|
||||
|
||||
|
|
Loading…
Reference in a new issue