Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 24e50842 authored by Austin Delgado's avatar Austin Delgado Committed by Android (Google) Code Review
Browse files

Merge "Fix Bp small to large transition" into main

parents 764dcfc5 c298bf3f
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -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
@@ -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)