[fenix] For https://github.com/mozilla-mobile/fenix/issues/2460 - Announce "Syncing" for a11y feedback when "Sync Now" pressed (https://github.com/mozilla-mobile/fenix/pull/2463)

pull/600/head
Emily Kager 5 years ago committed by Jeff Boek
parent c361ad6551
commit a6053716da

@ -90,7 +90,7 @@ class AccountSettingsFragment : PreferenceFragmentCompat(), CoroutineScope {
override fun onStarted() {
CoroutineScope(Dispatchers.Main).launch {
val pref = findPreference<Preference>(context!!.getPreferenceKey(R.string.pref_key_sync_now))
view?.announceForAccessibility(getString(R.string.sync_syncing))
pref?.title = getString(R.string.sync_syncing)
pref?.isEnabled = false
}

Loading…
Cancel
Save