Loading packages/SystemUI/compose/features/src/com/android/systemui/communal/ui/compose/DragAndDropTargetState.kt +2 −2 Original line number Diff line number Diff line Loading @@ -161,9 +161,9 @@ internal class DragAndDropTargetState( private var isOnRemoveButton = false fun onStarted() { // assume item will be added to the end. contentListState.list.add(placeHolder) // assume item will be added to the second to last position before CTA tile. placeHolderIndex = contentListState.list.size - 1 placeHolderIndex?.let { contentListState.list.add(it, placeHolder) } } fun onMoved(event: DragAndDropEvent) { Loading Loading
packages/SystemUI/compose/features/src/com/android/systemui/communal/ui/compose/DragAndDropTargetState.kt +2 −2 Original line number Diff line number Diff line Loading @@ -161,9 +161,9 @@ internal class DragAndDropTargetState( private var isOnRemoveButton = false fun onStarted() { // assume item will be added to the end. contentListState.list.add(placeHolder) // assume item will be added to the second to last position before CTA tile. placeHolderIndex = contentListState.list.size - 1 placeHolderIndex?.let { contentListState.list.add(it, placeHolder) } } fun onMoved(event: DragAndDropEvent) { Loading