From 3c2e237d633e33990f2de44cfb69bbd773004c13 Mon Sep 17 00:00:00 2001 From: arkon Date: Sun, 7 Aug 2022 10:16:08 -0400 Subject: [PATCH] Fix appbar action content descriptions --- .../presentation/history/components/HistoryToolbar.kt | 4 ++-- .../presentation/library/components/LibraryToolbar.kt | 8 +++++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/eu/kanade/presentation/history/components/HistoryToolbar.kt b/app/src/main/java/eu/kanade/presentation/history/components/HistoryToolbar.kt index 00638ac33a..f615d9c607 100644 --- a/app/src/main/java/eu/kanade/presentation/history/components/HistoryToolbar.kt +++ b/app/src/main/java/eu/kanade/presentation/history/components/HistoryToolbar.kt @@ -62,10 +62,10 @@ fun HistoryRegularToolbar( title = stringResource(id = R.string.history), actions = { IconButton(onClick = onClickSearch) { - Icon(Icons.Outlined.Search, contentDescription = "search") + Icon(Icons.Outlined.Search, contentDescription = stringResource(R.string.action_search)) } IconButton(onClick = onClickDelete) { - Icon(Icons.Outlined.DeleteSweep, contentDescription = "delete") + Icon(Icons.Outlined.DeleteSweep, contentDescription = stringResource(R.string.pref_clear_history)) } }, downloadedOnlyMode = downloadedOnlyMode, diff --git a/app/src/main/java/eu/kanade/presentation/library/components/LibraryToolbar.kt b/app/src/main/java/eu/kanade/presentation/library/components/LibraryToolbar.kt index 9b38426566..a8a2d795e0 100644 --- a/app/src/main/java/eu/kanade/presentation/library/components/LibraryToolbar.kt +++ b/app/src/main/java/eu/kanade/presentation/library/components/LibraryToolbar.kt @@ -27,12 +27,14 @@ import androidx.compose.ui.draw.drawBehind import androidx.compose.ui.focus.FocusRequester import androidx.compose.ui.focus.focusRequester import androidx.compose.ui.graphics.SolidColor +import androidx.compose.ui.res.stringResource import androidx.compose.ui.text.style.TextOverflow import androidx.compose.ui.unit.sp import eu.kanade.presentation.components.AppBar import eu.kanade.presentation.components.Pill import eu.kanade.presentation.library.LibraryState import eu.kanade.presentation.theme.active +import eu.kanade.tachiyomi.R import kotlinx.coroutines.delay @Composable @@ -109,13 +111,13 @@ fun LibraryRegularToolbar( }, actions = { IconButton(onClick = onClickSearch) { - Icon(Icons.Outlined.Search, contentDescription = "search") + Icon(Icons.Outlined.Search, contentDescription = stringResource(R.string.action_search)) } IconButton(onClick = onClickFilter) { - Icon(Icons.Outlined.FilterList, contentDescription = "search", tint = filterTint) + Icon(Icons.Outlined.FilterList, contentDescription = stringResource(R.string.action_filter), tint = filterTint) } IconButton(onClick = onClickRefresh) { - Icon(Icons.Outlined.Refresh, contentDescription = "search") + Icon(Icons.Outlined.Refresh, contentDescription = stringResource(R.string.pref_category_library_update)) } }, incognitoMode = incognitoMode,