Loading packages/SystemUI/src/com/android/systemui/biometrics/ui/binder/BiometricViewSizeBinder.kt +6 −4 Original line number Diff line number Diff line Loading @@ -18,13 +18,11 @@ package com.android.systemui.biometrics.ui.binder import android.animation.Animator import android.animation.AnimatorSet import android.animation.ValueAnimator import android.graphics.Outline import android.graphics.Rect import android.transition.AutoTransition import android.transition.TransitionManager import android.util.TypedValue import android.view.Surface import android.view.View import android.view.ViewGroup import android.view.ViewOutlineProvider Loading Loading @@ -428,10 +426,14 @@ object BiometricViewSizeBinder { mediumConstraintSet.applyTo(view) } } size.isLarge && currentSize.isMedium -> { size.isLarge -> { val autoTransition = AutoTransition() autoTransition.setDuration( if (currentSize.isSmall) { ANIMATE_SMALL_TO_MEDIUM_DURATION_MS.toLong() } else { ANIMATE_MEDIUM_TO_LARGE_DURATION_MS.toLong() } ) TransitionManager.beginDelayedTransition(view, autoTransition) Loading Loading
packages/SystemUI/src/com/android/systemui/biometrics/ui/binder/BiometricViewSizeBinder.kt +6 −4 Original line number Diff line number Diff line Loading @@ -18,13 +18,11 @@ package com.android.systemui.biometrics.ui.binder import android.animation.Animator import android.animation.AnimatorSet import android.animation.ValueAnimator import android.graphics.Outline import android.graphics.Rect import android.transition.AutoTransition import android.transition.TransitionManager import android.util.TypedValue import android.view.Surface import android.view.View import android.view.ViewGroup import android.view.ViewOutlineProvider Loading Loading @@ -428,10 +426,14 @@ object BiometricViewSizeBinder { mediumConstraintSet.applyTo(view) } } size.isLarge && currentSize.isMedium -> { size.isLarge -> { val autoTransition = AutoTransition() autoTransition.setDuration( if (currentSize.isSmall) { ANIMATE_SMALL_TO_MEDIUM_DURATION_MS.toLong() } else { ANIMATE_MEDIUM_TO_LARGE_DURATION_MS.toLong() } ) TransitionManager.beginDelayedTransition(view, autoTransition) Loading