Skip to content

Commit

Permalink
Issue mozilla-mobile#1063: InfoFragment: Re-add "loading" accessibili…
Browse files Browse the repository at this point in the history
…ty announcement.
  • Loading branch information
pocmo committed Sep 3, 2018
1 parent 03d6fef commit 4826adb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/src/main/java/org/mozilla/focus/browser/InfoFragment.kt
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ class InfoFragment : EngineViewLifecycleFragment(), Session.Observer {
}

override fun onLoadingStateChanged(session: Session, loading: Boolean) {
if (loading) {
progressView?.announceForAccessibility(getString(R.string.accessibility_announcement_loading))
}

progressView?.visibility = if (loading) {
View.VISIBLE
} else {
Expand Down

0 comments on commit 4826adb

Please sign in to comment.