mirror of
https://github.com/mihonapp/mihon.git
synced 2025-06-26 19:17:51 +02:00
Update core-splashscreen (#6471)
This commit is contained in:
@ -141,7 +141,7 @@ class MainActivity : BaseViewBindingActivity<MainActivityBinding>() {
|
||||
}
|
||||
|
||||
val startTime = System.currentTimeMillis()
|
||||
splashScreen?.setKeepVisibleCondition {
|
||||
splashScreen?.setKeepOnScreenCondition() {
|
||||
val elapsed = System.currentTimeMillis() - startTime
|
||||
elapsed <= SPLASH_MIN_DURATION || (!ready && elapsed <= SPLASH_MAX_DURATION)
|
||||
}
|
||||
@ -293,9 +293,6 @@ 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
|
||||
|
Reference in New Issue
Block a user