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

Commit 173bf356 authored by Beverly Tai's avatar Beverly Tai Committed by Android (Google) Code Review
Browse files

Merge "Quickly fade out the UDFPS icon on launch animations" into udc-dev

parents a3467673 6187d998
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -464,7 +464,12 @@ constructor(
            // Fade out the icon if we are animating an activity launch over the lockscreen and the
            // activity didn't request the UDFPS.
            if (isLaunchingActivity && !udfpsRequested) {
                alpha = (alpha * (1.0f - activityLaunchProgress)).toInt()
                val udfpsActivityLaunchAlphaMultiplier =
                    1f -
                        (activityLaunchProgress *
                                (ActivityLaunchAnimator.TIMINGS.totalDuration / 83))
                            .coerceIn(0f, 1f)
                alpha = (alpha * udfpsActivityLaunchAlphaMultiplier).toInt()
            }

            // Fade out alpha when a dialog is shown