@@ -160,9 +160,9 @@ fun AccessibilitySettingsScreen(navController: NavController) {
160160 val mediaEQEnabled = remember { mutableStateOf(false ) }
161161
162162 val pressSpeedOptions = mapOf (
163- 0 .toByte() to " Default " ,
164- 1 .toByte() to " Slower " ,
165- 2 .toByte() to " Slowest "
163+ 0 .toByte() to stringResource( R .string.default_option) ,
164+ 1 .toByte() to stringResource( R .string.slower) ,
165+ 2 .toByte() to stringResource( R .string.slowest)
166166 )
167167 val selectedPressSpeedValue =
168168 aacpManager?.controlCommandStatusList?.find { it.identifier == AACPManager .Companion .ControlCommandIdentifiers .DOUBLE_CLICK_INTERVAL }?.value?.takeIf { it.isNotEmpty() }
@@ -196,9 +196,9 @@ fun AccessibilitySettingsScreen(navController: NavController) {
196196 }
197197
198198 val pressAndHoldDurationOptions = mapOf (
199- 0 .toByte() to " Default " ,
200- 1 .toByte() to " Slower " ,
201- 2 .toByte() to " Slowest "
199+ 0 .toByte() to stringResource( R .string.default_option) ,
200+ 1 .toByte() to stringResource( R .string.slower) ,
201+ 2 .toByte() to stringResource( R .string.slowest)
202202 )
203203 val selectedPressAndHoldDurationValue =
204204 aacpManager?.controlCommandStatusList?.find { it.identifier == AACPManager .Companion .ControlCommandIdentifiers .CLICK_HOLD_INTERVAL }?.value?.takeIf { it.isNotEmpty() }
@@ -234,9 +234,9 @@ fun AccessibilitySettingsScreen(navController: NavController) {
234234 }
235235
236236 val volumeSwipeSpeedOptions = mapOf (
237- 1 .toByte() to " Default " ,
238- 2 .toByte() to " Longer " ,
239- 3 .toByte() to " Longest "
237+ 1 .toByte() to stringResource( R .string.default_option) ,
238+ 2 .toByte() to stringResource( R .string.longer) ,
239+ 3 .toByte() to stringResource( R .string.longest)
240240 )
241241 val selectedVolumeSwipeSpeedValue =
242242 aacpManager?.controlCommandStatusList?.find { it.identifier == AACPManager .Companion .ControlCommandIdentifiers .VOLUME_SWIPE_INTERVAL }?.value?.takeIf { it.isNotEmpty() }
@@ -322,7 +322,7 @@ fun AccessibilitySettingsScreen(navController: NavController) {
322322 label = stringResource(R .string.press_speed),
323323 description = stringResource(R .string.press_speed_description),
324324 options = pressSpeedOptions.values.toList(),
325- selectedOption = selectedPressSpeed? : " Default " ,
325+ selectedOption = selectedPressSpeed? : stringResource( R .string.default_option) ,
326326 onOptionSelected = { newValue ->
327327 selectedPressSpeed = newValue
328328 aacpManager?.sendControlCommand(
@@ -340,7 +340,7 @@ fun AccessibilitySettingsScreen(navController: NavController) {
340340 label = stringResource(R .string.press_and_hold_duration),
341341 description = stringResource(R .string.press_and_hold_duration_description),
342342 options = pressAndHoldDurationOptions.values.toList(),
343- selectedOption = selectedPressAndHoldDuration? : " Default " ,
343+ selectedOption = selectedPressAndHoldDuration? : stringResource( R .string.default_option) ,
344344 onOptionSelected = { newValue ->
345345 selectedPressAndHoldDuration = newValue
346346 aacpManager?.sendControlCommand(
@@ -403,7 +403,7 @@ fun AccessibilitySettingsScreen(navController: NavController) {
403403 label = stringResource(R .string.volume_swipe_speed),
404404 description = stringResource(R .string.volume_swipe_speed_description),
405405 options = volumeSwipeSpeedOptions.values.toList(),
406- selectedOption = selectedVolumeSwipeSpeed? : " Default " ,
406+ selectedOption = selectedVolumeSwipeSpeed? : stringResource( R .string.default_option) ,
407407 onOptionSelected = { newValue ->
408408 selectedVolumeSwipeSpeed = newValue
409409 aacpManager?.sendControlCommand(
0 commit comments