Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ import androidx.hilt.navigation.compose.hiltViewModel
import androidx.lifecycle.compose.collectAsStateWithLifecycle
import eu.darken.capod.R
import eu.darken.capod.common.navigation.NavigationEventHandler
import eu.darken.capod.common.settings.InfoBoxType
import eu.darken.capod.common.settings.SettingsCategoryHeader
import eu.darken.capod.common.settings.SettingsInfoBox
import eu.darken.capod.reaction.core.stem.StemAction

@Composable
Expand Down Expand Up @@ -180,6 +182,15 @@ fun StemActionConfigScreen(
)
}

if (state.leftLong != StemAction.NONE || state.rightLong != StemAction.NONE) {
item("long_anc_cycle_info") {
SettingsInfoBox(
text = stringResource(R.string.stem_actions_long_press_anc_cycle_info),
type = InfoBoxType.INFO,
)
}
}

item("bottom_spacer") {
Spacer(modifier = Modifier.height(16.dp))
}
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,7 @@
<string name="stem_actions_double_press">Double Press</string>
<string name="stem_actions_triple_press">Triple Press</string>
<string name="stem_actions_long_press">Long Press</string>
<string name="stem_actions_long_press_anc_cycle_info">Assigning a long-press action also disables cycling Noise Control modes (e.g. Noise Cancellation, Transparency) by holding the stem on the AirPods.</string>
<string name="stem_actions_left">Left</string>
<string name="stem_actions_right">Right</string>
<string name="stem_action_none">Default</string>
Expand Down