From a3b794be5c8e0ceb333cbb4e2893f5a79e78cd11 Mon Sep 17 00:00:00 2001 From: M57 <41645758+Hy4ri@users.noreply.github.com> Date: Thu, 25 Jun 2026 20:31:21 +0300 Subject: [PATCH] feat(#221): add Activate button to profile cards for switching profiles (#360) Co-authored-by: M57 --- .../m57/hermescontrol/ui/profiles/ProfilesScreen.kt | 12 ++++++++++++ app/src/main/res/values/strings.xml | 1 + 2 files changed, 13 insertions(+) diff --git a/app/src/main/java/com/m57/hermescontrol/ui/profiles/ProfilesScreen.kt b/app/src/main/java/com/m57/hermescontrol/ui/profiles/ProfilesScreen.kt index 5d5aa518..68753378 100644 --- a/app/src/main/java/com/m57/hermescontrol/ui/profiles/ProfilesScreen.kt +++ b/app/src/main/java/com/m57/hermescontrol/ui/profiles/ProfilesScreen.kt @@ -209,6 +209,18 @@ fun ProfilesScreen( Spacer(modifier = Modifier.height(16.dp)) + if (!isActive) { + Button( + onClick = { viewModel.selectActiveProfile(profile.name) }, + modifier = + Modifier + .fillMaxWidth() + .padding(bottom = 8.dp), + ) { + Text(stringResource(R.string.profiles_action_activate)) + } + } + Row( modifier = Modifier.fillMaxWidth(), horizontalArrangement = Arrangement.End, diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 31663472..b057916d 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -294,6 +294,7 @@ Connection profiles from Hermes will appear here. Model: %1$s Provider: %1$s + Activate Edit Soul Set Model Active Profile