Skip to content

Commit 2366068

Browse files
committed
#1369 fix: add content description for FABs
1 parent bb00071 commit 2366068

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/src/main/java/io/github/sds100/keymapper/home/HomeScreen.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,13 +343,13 @@ fun HomeScreen(
343343
modifier = Modifier.padding(horizontal = 16.dp),
344344
verticalAlignment = Alignment.CenterVertically,
345345
) {
346-
Icon(Icons.Rounded.Add, contentDescription = null)
347-
348346
val fabText = when (currentDestination?.route) {
349347
HomeDestination.FloatingButtons.route -> stringResource(R.string.home_fab_new_floating_layout)
350348
else -> stringResource(R.string.home_fab_new_key_map)
351349
}
352350

351+
Icon(Icons.Rounded.Add, contentDescription = fabText)
352+
353353
val isFabTextVisible = if (isFloatingLayoutsDestination) {
354354
viewModel.listFloatingLayoutsViewModel.showFabText
355355
} else {

0 commit comments

Comments
 (0)