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/Android.bp b/packages/SystemUI/Android.bp
index 9d3200d..1bc49fb 100644
--- a/packages/SystemUI/Android.bp
+++ b/packages/SystemUI/Android.bp
@@ -476,6 +476,8 @@
"motion_tool_lib",
"androidx.core_core-animation-testing-nodeps",
"androidx.compose.ui_ui",
+ "flag-junit",
+ "platform-test-annotations",
],
}