Update start radius for reveal animation to match spec.
Bug: 273961611
Change-Id: I3330b8b2ec47d7e9608b900a859d2a865f92a994
Flag: ENABLE_TRANSIENT_TASKBAR
Test: stash/unstash
diff --git a/quickstep/src/com/android/launcher3/taskbar/TaskbarViewController.java b/quickstep/src/com/android/launcher3/taskbar/TaskbarViewController.java
index 4d92a9e..d03255b 100644
--- a/quickstep/src/com/android/launcher3/taskbar/TaskbarViewController.java
+++ b/quickstep/src/com/android/launcher3/taskbar/TaskbarViewController.java
@@ -335,8 +335,8 @@
}
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);