Remove remaining usages of platform-provided strings

This commit is contained in:
arkon 2023-10-14 11:11:05 -04:00
parent 8a7bbfddda
commit 5619a4c0d9
4 changed files with 5 additions and 5 deletions

View file

@ -199,7 +199,7 @@ private fun SetAsDefaultDialog(
}, },
dismissButton = { dismissButton = {
TextButton(onClick = onDismissRequest) { TextButton(onClick = onDismissRequest) {
Text(text = stringResource(android.R.string.cancel)) Text(text = stringResource(R.string.action_cancel))
} }
}, },
confirmButton = { confirmButton = {

View file

@ -246,7 +246,7 @@ object SettingsBackupScreen : SearchableSettings {
onDismissRequest() onDismissRequest()
}, },
) { ) {
Text(text = stringResource(android.R.string.copy)) Text(text = stringResource(R.string.action_copy_to_clipboard))
} }
}, },
confirmButton = { confirmButton = {

View file

@ -171,7 +171,7 @@ fun TrackDateSelector(
Spacer(modifier = Modifier.weight(1f)) Spacer(modifier = Modifier.weight(1f))
} }
TextButton(onClick = onDismissRequest) { TextButton(onClick = onDismissRequest) {
Text(text = stringResource(android.R.string.cancel)) Text(text = stringResource(R.string.action_cancel))
} }
TextButton(onClick = { onConfirm(pickerState.selectedDateMillis!!) }) { TextButton(onClick = { onConfirm(pickerState.selectedDateMillis!!) }) {
Text(text = stringResource(R.string.action_ok)) Text(text = stringResource(R.string.action_ok))
@ -209,7 +209,7 @@ private fun BaseSelector(
Spacer(modifier = Modifier.weight(1f)) Spacer(modifier = Modifier.weight(1f))
} }
TextButton(onClick = onDismissRequest) { TextButton(onClick = onDismissRequest) {
Text(text = stringResource(android.R.string.cancel)) Text(text = stringResource(R.string.action_cancel))
} }
TextButton(onClick = onConfirm) { TextButton(onClick = onConfirm) {
Text(text = stringResource(R.string.action_ok)) Text(text = stringResource(R.string.action_ok))

View file

@ -593,7 +593,7 @@ private data class TrackDateRemoverScreen(
horizontalArrangement = Arrangement.spacedBy(MaterialTheme.padding.small, Alignment.End), horizontalArrangement = Arrangement.spacedBy(MaterialTheme.padding.small, Alignment.End),
) { ) {
TextButton(onClick = navigator::pop) { TextButton(onClick = navigator::pop) {
Text(text = stringResource(android.R.string.cancel)) Text(text = stringResource(R.string.action_cancel))
} }
FilledTonalButton( FilledTonalButton(
onClick = { onClick = {