Skip to content

Commit 418234a

Browse files
committed
refactor: reorder allow user namespace toggle in ContainerConfigScreen
1 parent fd8b8fd commit 418234a

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

Android/app/src/main/java/com/droidspaces/app/ui/screen/ContainerConfigScreen.kt

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -752,14 +752,6 @@ fun ContainerConfigScreen(
752752
onCheckedChange = { enableHwAccess = it }
753753
)
754754

755-
ToggleCard(
756-
icon = Icons.Default.Person,
757-
title = context.getString(R.string.allow_user_ns),
758-
description = context.getString(R.string.allow_user_ns_description),
759-
checked = allowUserNs,
760-
enabled = !blockNestedNs,
761-
onCheckedChange = { allowUserNs = it }
762-
)
763755

764756
ToggleCard(
765757
painter = androidx.compose.ui.res.painterResource(R.drawable.ic_x11),
@@ -810,6 +802,15 @@ fun ContainerConfigScreen(
810802
onCheckedChange = { blockNestedNs = it }
811803
)
812804

805+
ToggleCard(
806+
icon = Icons.Default.Person,
807+
title = context.getString(R.string.allow_user_ns),
808+
description = context.getString(R.string.allow_user_ns_description),
809+
checked = allowUserNs,
810+
enabled = !blockNestedNs,
811+
onCheckedChange = { allowUserNs = it }
812+
)
813+
813814
ToggleCard(
814815
icon = Icons.Default.PowerSettingsNew,
815816
title = context.getString(R.string.run_at_boot),

0 commit comments

Comments
 (0)