1
0
Fork 0

For #1383: Fix updating description of close button on title change. (#6020)

master
Mihai Adrian 2019-10-21 20:00:26 +03:00 committed by Jeff Boek
parent ef42d3e4dc
commit fbec001e28
2 changed files with 4 additions and 2 deletions

View File

@ -220,7 +220,9 @@ class SessionControlAdapter(
holder.play_pause_button.visibility = View.GONE
if (it.shouldUpdateHostname) { holder.updateHostname(it.tab.hostname) }
if (it.shouldUpdateTitle) { holder.updateTitle(it.tab.title) }
if (it.shouldUpdateTitle) {
holder.updateTitle(it.tab.title)
holder.updateCloseButtonDescription(it.tab.title) }
if (it.shouldUpdateFavicon) {
holder.updateFavIcon(it.tab.url, it.tab.icon)
}

View File

@ -143,7 +143,7 @@ class TabViewHolder(
internal fun updateSelected(selected: Boolean) {
selected_border.visibility = if (selected) View.VISIBLE else View.GONE
}
private fun updateCloseButtonDescription(title: String) {
internal fun updateCloseButtonDescription(title: String) {
close_tab_button.contentDescription =
close_tab_button.context.getString(R.string.close_tab_title, title)
}