diff options
| author | 2024-06-25 04:26:13 +0000 | |
|---|---|---|
| committer | 2024-07-15 17:59:28 +0000 | |
| commit | a9ae7794a4343e445c458ca3e80217c9026f20b9 (patch) | |
| tree | 176a5638d621e863e0af56e29e52a390cabcfe94 | |
| parent | 54383e208949ca56115156093a64166e57108e37 (diff) | |
animateItemPlacement() is deprecated and needs to be updated to animateItem().
Change-Id: I02a8d1426812b8379a130cbcd15f64f6d325e9e9
Merged-In: I02a8d1426812b8379a130cbcd15f64f6d325e9e9
Test: Treehugger
Flag: bugfix b/348734945
(cherry picked from commit eb700ed24b673b598e8eef5a52f21b728893cf03)
2 files changed, 2 insertions, 2 deletions
diff --git a/packages/SystemUI/compose/features/src/com/android/systemui/communal/ui/compose/CommunalHub.kt b/packages/SystemUI/compose/features/src/com/android/systemui/communal/ui/compose/CommunalHub.kt index 927890e9d6af..6d85693cc055 100644 --- a/packages/SystemUI/compose/features/src/com/android/systemui/communal/ui/compose/CommunalHub.kt +++ b/packages/SystemUI/compose/features/src/com/android/systemui/communal/ui/compose/CommunalHub.kt @@ -526,7 +526,7 @@ private fun BoxScope.CommunalHubLazyGrid( } } else { CommunalContent( - modifier = cardModifier.animateItemPlacement(), + modifier = cardModifier.animateItem(), model = list[index], viewModel = viewModel, size = size, diff --git a/packages/SystemUI/compose/features/src/com/android/systemui/communal/ui/compose/GridDragDropState.kt b/packages/SystemUI/compose/features/src/com/android/systemui/communal/ui/compose/GridDragDropState.kt index 33d2cc40cb06..45a485fb0ec6 100644 --- a/packages/SystemUI/compose/features/src/com/android/systemui/communal/ui/compose/GridDragDropState.kt +++ b/packages/SystemUI/compose/features/src/com/android/systemui/communal/ui/compose/GridDragDropState.kt @@ -267,7 +267,7 @@ fun LazyGridItemScope.DraggableItem( alpha = itemAlpha } } else { - Modifier.animateItemPlacement() + Modifier.animateItem() } Box(modifier) { |