Content descriptions

This commit is contained in:
Sad Ellie 2023-09-26 14:00:18 +03:00
parent 4cfd876bfd
commit d039f00141
2 changed files with 3 additions and 3 deletions

View File

@ -114,7 +114,7 @@ private fun HistoryListPlaceholder(
verticalArrangement = Arrangement.Center, verticalArrangement = Arrangement.Center,
horizontalAlignment = Alignment.CenterHorizontally horizontalAlignment = Alignment.CenterHorizontally
) { ) {
Icon(Icons.Default.History, null) Icon(Icons.Default.History, stringResource(R.string.calculator_no_history))
Text(stringResource(R.string.calculator_no_history)) Text(stringResource(R.string.calculator_no_history))
} }
} }

View File

@ -204,7 +204,7 @@ private fun AddSubtractView(
shape = SegmentedButtonDefaults.itemShape(index = 0, count = 2), shape = SegmentedButtonDefaults.itemShape(index = 0, count = 2),
icon = {} icon = {}
) { ) {
Icon(Icons.Outlined.Add, null) Icon(Icons.Outlined.Add, stringResource(R.string.add))
} }
SegmentedButton( SegmentedButton(
selected = !uiState.addition, selected = !uiState.addition,
@ -212,7 +212,7 @@ private fun AddSubtractView(
shape = SegmentedButtonDefaults.itemShape(index = 1, count = 2), shape = SegmentedButtonDefaults.itemShape(index = 1, count = 2),
icon = {} icon = {}
) { ) {
Icon(Icons.Outlined.Remove, null) Icon(Icons.Outlined.Remove, stringResource(R.string.subtract))
} }
} }