Loading packages/SystemUI/compose/features/src/com/android/systemui/communal/ui/compose/CommunalHub.kt +0 −4 Original line number Diff line number Diff line Loading @@ -250,7 +250,6 @@ fun CommunalHub( ) isDraggingToRemove }, onOpenWidgetPicker = onOpenWidgetPicker, gridState = gridState, contentListState = contentListState, selectedKey = selectedKey, Loading Loading @@ -393,7 +392,6 @@ private fun BoxScope.CommunalHubLazyGrid( contentListState: ContentListState, setGridCoordinates: (coordinates: LayoutCoordinates) -> Unit, updateDragPositionForRemove: (offset: Offset) -> Boolean, onOpenWidgetPicker: (() -> Unit)? = null, widgetConfigurator: WidgetConfigurator?, ) { var gridModifier = Loading Loading @@ -461,7 +459,6 @@ private fun BoxScope.CommunalHubLazyGrid( model = list[index], viewModel = viewModel, size = size, onOpenWidgetPicker = onOpenWidgetPicker, selected = selected && !isDragging, widgetConfigurator = widgetConfigurator, ) Loading Loading @@ -739,7 +736,6 @@ private fun CommunalContent( size: SizeF, selected: Boolean, modifier: Modifier = Modifier, onOpenWidgetPicker: (() -> Unit)? = null, widgetConfigurator: WidgetConfigurator? = null, ) { when (model) { 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 second to last position before CTA tile. // assume item will be added to the end. contentListState.list.add(placeHolder) placeHolderIndex = contentListState.list.size - 1 placeHolderIndex?.let { contentListState.list.add(it, placeHolder) } } fun onMoved(event: DragAndDropEvent) { Loading packages/SystemUI/src/com/android/systemui/communal/ui/viewmodel/CommunalEditModeViewModel.kt +1 −1 Original line number Diff line number Diff line Loading @@ -63,7 +63,7 @@ constructor( override val isEditMode = true // Only widgets are editable. The CTA tile comes last in the list and remains visible. // Only widgets are editable. override val communalContent: Flow<List<CommunalContentModel>> = communalInteractor.widgetContent.onEach { models -> logger.d({ "Content updated: $str1" }) { str1 = models.joinToString { it.key } } Loading Loading
packages/SystemUI/compose/features/src/com/android/systemui/communal/ui/compose/CommunalHub.kt +0 −4 Original line number Diff line number Diff line Loading @@ -250,7 +250,6 @@ fun CommunalHub( ) isDraggingToRemove }, onOpenWidgetPicker = onOpenWidgetPicker, gridState = gridState, contentListState = contentListState, selectedKey = selectedKey, Loading Loading @@ -393,7 +392,6 @@ private fun BoxScope.CommunalHubLazyGrid( contentListState: ContentListState, setGridCoordinates: (coordinates: LayoutCoordinates) -> Unit, updateDragPositionForRemove: (offset: Offset) -> Boolean, onOpenWidgetPicker: (() -> Unit)? = null, widgetConfigurator: WidgetConfigurator?, ) { var gridModifier = Loading Loading @@ -461,7 +459,6 @@ private fun BoxScope.CommunalHubLazyGrid( model = list[index], viewModel = viewModel, size = size, onOpenWidgetPicker = onOpenWidgetPicker, selected = selected && !isDragging, widgetConfigurator = widgetConfigurator, ) Loading Loading @@ -739,7 +736,6 @@ private fun CommunalContent( size: SizeF, selected: Boolean, modifier: Modifier = Modifier, onOpenWidgetPicker: (() -> Unit)? = null, widgetConfigurator: WidgetConfigurator? = null, ) { when (model) { 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 second to last position before CTA tile. // assume item will be added to the end. contentListState.list.add(placeHolder) placeHolderIndex = contentListState.list.size - 1 placeHolderIndex?.let { contentListState.list.add(it, placeHolder) } } fun onMoved(event: DragAndDropEvent) { Loading
packages/SystemUI/src/com/android/systemui/communal/ui/viewmodel/CommunalEditModeViewModel.kt +1 −1 Original line number Diff line number Diff line Loading @@ -63,7 +63,7 @@ constructor( override val isEditMode = true // Only widgets are editable. The CTA tile comes last in the list and remains visible. // Only widgets are editable. override val communalContent: Flow<List<CommunalContentModel>> = communalInteractor.widgetContent.onEach { models -> logger.d({ "Content updated: $str1" }) { str1 = models.joinToString { it.key } } Loading