Added spring animations for tucking/untucking Floating Action Button
This change builds off of modifications from ag/24314702 to better suit animated tucking/untucking.
MenuViewLayer applies a clipBounds covering most of the screen excluding system/navigation bars
once the FAB begins a tucking animation. It does not remove the clip bounds until an untuck animation concludes.
Flag: ACONFIG com.android.systemui.Flags.floating_menu_animated_tuck ENABLED
Bug: 297556899
Test: adb sync system_ext && adb shell stop && adb shell start
Change-Id: Ic18e39486e24cd9080620174f9a3ecb298ebc515
diff --git a/packages/SystemUI/aconfig/accessibility.aconfig b/packages/SystemUI/aconfig/accessibility.aconfig
index 08ecf09b..25ac486 100644
--- a/packages/SystemUI/aconfig/accessibility.aconfig
+++ b/packages/SystemUI/aconfig/accessibility.aconfig
@@ -3,10 +3,10 @@
# NOTE: Keep alphabetized to help limit merge conflicts from multiple simultaneous editors.
flag {
- name: "floating_menu_overlaps_nav_bars_flag"
+ name: "floating_menu_animated_tuck"
namespace: "accessibility"
- description: "Adjusts bounds to allow the floating menu to render on top of navigation bars."
- bug: "283768342"
+ description: "Sets up animations for tucking/untucking and adjusts clipbounds."
+ bug: "24592044"
}
flag {
@@ -14,4 +14,11 @@
namespace: "accessibility"
description: "Adds an animation for when the FAB is displaced by an IME becoming visible."
bug: "281150010"
+}
+
+flag {
+ name: "floating_menu_overlaps_nav_bars_flag"
+ namespace: "accessibility"
+ description: "Adjusts bounds to allow the floating menu to render on top of navigation bars."
+ bug: "283768342"
}
\ No newline at end of file