1
0
Fork 0

Fixes #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.
master
ValentinTimisica 2019-08-06 10:54:16 +03:00 committed by Emily Kager
parent 631b7ba7cb
commit 71aedc79fe
1 changed files with 3 additions and 0 deletions

View File

@ -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 {