Revert "Update core-splashscreen (#6471)"

This reverts commit 46ec655db5.

This broke the background color in Android 12+.
This commit is contained in:
arkon
2022-01-18 22:51:37 -05:00
parent 0cb4094dd9
commit 2cc6794db5
2 changed files with 5 additions and 2 deletions

View File

@ -141,7 +141,7 @@ class MainActivity : BaseViewBindingActivity<MainActivityBinding>() {
}
val startTime = System.currentTimeMillis()
splashScreen?.setKeepOnScreenCondition() {
splashScreen?.setKeepVisibleCondition {
val elapsed = System.currentTimeMillis() - startTime
elapsed <= SPLASH_MIN_DURATION || (!ready && elapsed <= SPLASH_MAX_DURATION)
}
@ -293,6 +293,9 @@ class MainActivity : BaseViewBindingActivity<MainActivityBinding>() {
window.navigationBarColor = Color.TRANSPARENT
splashScreen.setOnExitAnimationListener { splashProvider ->
// For some reason the SplashScreen applies (incorrect) Y translation to the iconView
splashProvider.iconView.translationY = 0F
val activityAnim = ValueAnimator.ofFloat(1F, 0F).apply {
interpolator = LinearOutSlowInInterpolator()
duration = SPLASH_EXIT_ANIM_DURATION