Added support to animate transitions for menu radii
When dragged by the user, FAB has rounded edges on all sides.
When attached to the side of the screen, that side of the menu flattens to lie uniform.
This aims to smooth out the transition.
Adds a RadiiAnimator to use a single ValueAnimator to drive 8 radii.
Bug: 281140482
Test: atest RadiiAnimatorTest
Flag: ACONFIG com.android.systemui.Flags.floating_menu_radii_animation ENABLED
Change-Id: Ia77bc87905f1d863be713f7e51fc91988819bea8
diff --git a/packages/SystemUI/aconfig/accessibility.aconfig b/packages/SystemUI/aconfig/accessibility.aconfig
index 25ac486..9e06872 100644
--- a/packages/SystemUI/aconfig/accessibility.aconfig
+++ b/packages/SystemUI/aconfig/accessibility.aconfig
@@ -21,4 +21,11 @@
namespace: "accessibility"
description: "Adjusts bounds to allow the floating menu to render on top of navigation bars."
bug: "283768342"
+}
+
+flag {
+ name: "floating_menu_radii_animation"
+ namespace: "accessibility"
+ description: "Animates the floating menu's transition between curved and jagged edges."
+ bug: "281140482"
}
\ No newline at end of file