Fix appbar action content descriptions

(cherry picked from commit 3c2e237d633e33990f2de44cfb69bbd773004c13)

# Conflicts:
#	app/src/main/java/eu/kanade/presentation/library/components/LibraryToolbar.kt
This commit is contained in:
arkon 2022-08-07 10:16:08 -04:00 committed by Jobobby04
parent 681318cab1
commit 71f2f03300
2 changed files with 5 additions and 5 deletions

View File

@ -62,10 +62,10 @@ fun HistoryRegularToolbar(
title = stringResource(id = R.string.history), title = stringResource(id = R.string.history),
actions = { actions = {
IconButton(onClick = onClickSearch) { IconButton(onClick = onClickSearch) {
Icon(Icons.Outlined.Search, contentDescription = "search") Icon(Icons.Outlined.Search, contentDescription = stringResource(R.string.action_search))
} }
IconButton(onClick = onClickDelete) { IconButton(onClick = onClickDelete) {
Icon(Icons.Outlined.DeleteSweep, contentDescription = "delete") Icon(Icons.Outlined.DeleteSweep, contentDescription = stringResource(R.string.pref_clear_history))
} }
}, },
downloadedOnlyMode = downloadedOnlyMode, downloadedOnlyMode = downloadedOnlyMode,

View File

@ -129,16 +129,16 @@ fun LibraryRegularToolbar(
}, },
actions = { actions = {
IconButton(onClick = onClickSearch) { IconButton(onClick = onClickSearch) {
Icon(Icons.Outlined.Search, contentDescription = "search") Icon(Icons.Outlined.Search, contentDescription = stringResource(R.string.action_search))
} }
IconButton(onClick = onClickFilter) { IconButton(onClick = onClickFilter) {
Icon(Icons.Outlined.FilterList, contentDescription = "search", tint = filterTint) Icon(Icons.Outlined.FilterList, contentDescription = stringResource(R.string.action_filter), tint = filterTint)
} }
// SY --> // SY -->
val moveGlobalUpdate = showSyncExh && calculateWindowWidthSizeClass() == WindowWidthSizeClass.Compact val moveGlobalUpdate = showSyncExh && calculateWindowWidthSizeClass() == WindowWidthSizeClass.Compact
if (!moveGlobalUpdate) { if (!moveGlobalUpdate) {
IconButton(onClick = onClickRefresh) { IconButton(onClick = onClickRefresh) {
Icon(Icons.Outlined.Refresh, contentDescription = "search") Icon(Icons.Outlined.Refresh, contentDescription = stringResource(R.string.pref_category_library_update))
} }
} }
var showOverflow by remember { mutableStateOf(false) } var showOverflow by remember { mutableStateOf(false) }