+34
−32
mechanics/compose/src/com/android/mechanics/compose/modifier/VerticalTactileSurfaceRevealModifier.kt
+71
−38
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
Revert submission 35460170-revert-35413718-mvc_in_md-ZYUFOMHIOR Reason for revert: Fix the compilation issue Reverted changes: /q/submissionid:35460170-revert-35413718-mvc_in_md-ZYUFOMHIOR This commit refactors `MotionDriver` and its clients to simplify the API and improve performance. The key changes are: - `AnimatedApproachMeasurement` is removed and replaced with direct use of `ManagedMotionValue`. - `MotionDriver` now directly manages a `MotionValueCollection` to create and manage `ManagedMotionValue` instances. - `VerticalTactileSurfaceRevealModifier` and `VerticalFadeContentRevealModifier` are updated to use the new `MotionDriver` API. - `VerticalTactileSurfaceRevealModifier` now handles its own clipping and alpha animation for better control over the reveal effect. - The `RevealOnThreshold` effect now includes a `cornerMaxSize` parameter to control the corner radius of the revealed surface. Test: Manually tested in the demo app Bug: 392535471 Flag: com.android.systemui.scene_container Change-Id: Ie05630af93c1978c995c963c857268a55544592b