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

Commit ec87c8eb authored by Beverly Tai's avatar Beverly Tai Committed by Automerger Merge Worker
Browse files

Merge "Quickly fade out the UDFPS icon on launch animations" into udc-dev am: 173bf356

parents e27ea096 173bf356
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