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),
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,

View File

@ -129,16 +129,16 @@ 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)
}
// SY -->
val moveGlobalUpdate = showSyncExh && calculateWindowWidthSizeClass() == WindowWidthSizeClass.Compact
if (!moveGlobalUpdate) {
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) }