From cb3fc6b07cad98be870af785ef4cf85edeec474c Mon Sep 17 00:00:00 2001 From: Jon Miranda Date: Tue, 21 Mar 2023 14:12:38 -0700 Subject: [PATCH] Update start radius for reveal animation to match spec. Bug: 273961611 Change-Id: I3330b8b2ec47d7e9608b900a859d2a865f92a994 Flag: ENABLE_TRANSIENT_TASKBAR Test: stash/unstash --- .../com/android/launcher3/taskbar/TaskbarViewController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/quickstep/src/com/android/launcher3/taskbar/TaskbarViewController.java b/quickstep/src/com/android/launcher3/taskbar/TaskbarViewController.java index 4d92a9e36f..d03255bc49 100644 --- a/quickstep/src/com/android/launcher3/taskbar/TaskbarViewController.java +++ b/quickstep/src/com/android/launcher3/taskbar/TaskbarViewController.java @@ -335,8 +335,8 @@ public class TaskbarViewController implements TaskbarControllers.LoggableTaskbar } Rect stashedRect = new Rect(left, top, right, bottom); - float radius = 0; - float stashedRadius = stashedRect.width() / 2f; + float radius = viewBounds.height() / 2f; + float stashedRadius = stashedRect.height() / 2f; return new RoundedRectRevealOutlineProvider(radius, stashedRadius, viewBounds, stashedRect) .createRevealAnimator(view, !isStashed, 0);