Skip to content

Commit 2b107ad

Browse files
committed
Fix WidgetConfigurationCard.kt
1 parent 099c139 commit 2b107ad

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

app/src/main/kotlin/com/w2sv/wifiwidget/ui/screens/widgetconfiguration/components/configuration/WidgetConfigurationCard.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import androidx.compose.ui.Modifier
1212
import androidx.compose.ui.platform.LocalContext
1313
import androidx.compose.ui.unit.dp
1414
import androidx.lifecycle.compose.collectAsStateWithLifecycle
15-
import com.w2sv.common.utils.moveElement
1615
import com.w2sv.composed.extensions.thenIf
1716
import com.w2sv.domain.model.WidgetBottomBarElement
1817
import com.w2sv.domain.model.WidgetRefreshingParameter
@@ -120,7 +119,7 @@ fun rememberWidgetConfigurationCardProperties(
120119
.update {
121120
it
122121
.toMutableList()
123-
.apply { moveElement(fromIndex, toIndex) }
122+
.apply { add(toIndex, removeAt(fromIndex)) }
124123
}
125124
}
126125
)

0 commit comments

Comments
 (0)