Update start radius for reveal animation to match spec.

Bug: 273961611
Change-Id: I3330b8b2ec47d7e9608b900a859d2a865f92a994
Flag: ENABLE_TRANSIENT_TASKBAR
Test: stash/unstash
This commit is contained in:
Jon Miranda
2023-03-21 14:12:38 -07:00
parent 149246f077
commit cb3fc6b07c

View File

@@ -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);