[fenix] Fixes https://github.com/mozilla-mobile/fenix/issues/3922: Added accessibility announcement for history empty state.

Sent an announcement when the list becomes empty in order to tell the user
that there is no history.
pull/600/head
ValentinTimisica 5 years ago committed by Emily Kager
parent c128f9bcc4
commit 8581ab5f6c

@ -107,6 +107,9 @@ class HistoryView(
fun updateEmptyState(userHasHistory: Boolean) {
history_list.isVisible = userHasHistory
history_empty_view.isVisible = !userHasHistory
if (!userHasHistory) {
history_empty_view.announceForAccessibility(context.getString(R.string.history_empty_message))
}
}
override fun onBackPressed(): Boolean {

Loading…
Cancel
Save