mirror of
https://github.com/d4rken-org/capod.git
synced 2026-09-14 18:26:11 -04:00
feat(stem): Note that long-press overrides native ANC cycling
This commit is contained in:
@@ -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
|
||||
@@ -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))
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user