Refactor away from deprecated AnchoredDraggableState usage
Categories
(Firefox for Android :: General, task, P2)
Tracking
()
People
(Reporter: RyanVM, Unassigned)
References
(Blocks 1 open bug)
Details
(Whiteboard: [fxdroid][group4])
With Compose 1.8, AnchoredDraggableState has been deprecated.
https://android.googlesource.com/platform/frameworks/support/+/502d84f2b0f83d024c4a2e1c05487ce324e22d02%5E%21/
SwipeToDismissBox.kt:106:80 'AnchoredDraggableState(T, (totalDistance: Float) -> Float, () -> Float, AnimationSpec<Float>, DecayAnimationSpec<Float>, (newValue: T) -> Boolean = ...): AnchoredDraggableState<T>' is deprecated. This constructor of AnchoredDraggableState has been deprecated. Please pass thresholds and animation specs to anchoredDraggableFlingBehavior(..) instead, which can be passed to Modifier.anchoredDraggable.
SwipeToDismissBox2.kt:112:84 'AnchoredDraggableState(T, (totalDistance: Float) -> Float, () -> Float, AnimationSpec<Float>, DecayAnimationSpec<Float>, (newValue: T) -> Boolean = ...): AnchoredDraggableState<T>' is deprecated. This constructor of AnchoredDraggableState has been deprecated. Please pass thresholds and animation specs to anchoredDraggableFlingBehavior(..) instead, which can be passed to Modifier.anchoredDraggable.
SwipeToDismissBox2.kt:184:50 'settle(Float): Float' is deprecated. settle does not accept a velocity anymore. Please use FlingBehavior#performFling instead. See AnchoredDraggableSamples.kt for example usages.
Updated•1 day ago
|
Updated•1 day ago
|
Description
•