Implement smooth FAB animations for displacement due to IME visibility changes
For the FAB to remember where it was before being displaced by an IME,
it needs to avoid persisting its position (updating the internal percentage-position value)
This change adds a parameter to onPositionChanged(), as well as our spring animation functions,
that controls whether they persist the position,
allowing us to use them for handling IME displacement.
Bug: 281150010
Test: adb sync system_ext && adb shell stop && adb shell start
Change-Id: Ic259db5d2612737aada2dd0440efce661754677b
diff --git a/packages/SystemUI/aconfig/accessibility.aconfig b/packages/SystemUI/aconfig/accessibility.aconfig
index bcf1535..08ecf09b 100644
--- a/packages/SystemUI/aconfig/accessibility.aconfig
+++ b/packages/SystemUI/aconfig/accessibility.aconfig
@@ -8,3 +8,10 @@
description: "Adjusts bounds to allow the floating menu to render on top of navigation bars."
bug: "283768342"
}
+
+flag {
+ name: "floating_menu_ime_displacement_animation"
+ namespace: "accessibility"
+ description: "Adds an animation for when the FAB is displaced by an IME becoming visible."
+ bug: "281150010"
+}
\ No newline at end of file