From 2b107ade44e32fc6d0d63109fddf8f3e42739f9b Mon Sep 17 00:00:00 2001 From: w2sv Date: Sun, 24 Nov 2024 12:26:20 +0100 Subject: [PATCH] Fix WidgetConfigurationCard.kt --- .../components/configuration/WidgetConfigurationCard.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/kotlin/com/w2sv/wifiwidget/ui/screens/widgetconfiguration/components/configuration/WidgetConfigurationCard.kt b/app/src/main/kotlin/com/w2sv/wifiwidget/ui/screens/widgetconfiguration/components/configuration/WidgetConfigurationCard.kt index 12269444..4d09b458 100644 --- a/app/src/main/kotlin/com/w2sv/wifiwidget/ui/screens/widgetconfiguration/components/configuration/WidgetConfigurationCard.kt +++ b/app/src/main/kotlin/com/w2sv/wifiwidget/ui/screens/widgetconfiguration/components/configuration/WidgetConfigurationCard.kt @@ -12,7 +12,6 @@ import androidx.compose.ui.Modifier import androidx.compose.ui.platform.LocalContext import androidx.compose.ui.unit.dp import androidx.lifecycle.compose.collectAsStateWithLifecycle -import com.w2sv.common.utils.moveElement import com.w2sv.composed.extensions.thenIf import com.w2sv.domain.model.WidgetBottomBarElement import com.w2sv.domain.model.WidgetRefreshingParameter @@ -120,7 +119,7 @@ fun rememberWidgetConfigurationCardProperties( .update { it .toMutableList() - .apply { moveElement(fromIndex, toIndex) } + .apply { add(toIndex, removeAt(fromIndex)) } } } )