Skip to content
Snippets Groups Projects
Unverified Commit e2ad1924 authored by Oliver Zimmerman's avatar Oliver Zimmerman Committed by GitHub
Browse files

Fix issue where test result is not spoken when refresh button is hit (EXPOSUREAPP-1540) (#827)


* Update TracingViewModel.kt

* Update TracingViewModel.kt

* Added the word 'Button' to various contentDescriptions via formatters

Added the word 'Button' to various contentDescriptions via formatters specifically for  content without focusable subcontent that are explored by touch

* Update FormatterSettingsHelper.kt

* removed space in strings file and included in formatter instead

* Added formatter tests

* Accessibility changes on test result screen - view should be described when refreshed

-Trigger accesibility announcement when refresh is clicked.
-Set live region to assertive so that any view changes are announced as soon as they are made.

* Update fragment_submission_test_result.xml

Co-authored-by: default avatarharambasicluka <64483219+harambasicluka@users.noreply.github.com>
Co-authored-by: default avatarPhilipp Woessner <64482866+pwoessner@users.noreply.github.com>
parent ffe19266
No related branches found
No related tags found
No related merge requests found
...@@ -127,6 +127,7 @@ class SubmissionTestResultFragment : Fragment() { ...@@ -127,6 +127,7 @@ class SubmissionTestResultFragment : Fragment() {
private fun setButtonOnClickListener() { private fun setButtonOnClickListener() {
binding.submissionTestResultButtonPendingRefresh.setOnClickListener { binding.submissionTestResultButtonPendingRefresh.setOnClickListener {
submissionViewModel.refreshDeviceUIState() submissionViewModel.refreshDeviceUIState()
binding.submissionTestResultContainer.sendAccessibilityEvent(AccessibilityEvent.TYPE_ANNOUNCEMENT)
} }
binding.submissionTestResultButtonPendingRemoveTest.setOnClickListener { binding.submissionTestResultButtonPendingRemoveTest.setOnClickListener {
......
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
<androidx.constraintlayout.widget.ConstraintLayout <androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/submission_test_result_container" android:id="@+id/submission_test_result_container"
android:contentDescription="@string/submission_test_result_headline" android:contentDescription="@string/submission_test_result_headline"
android:accessibilityLiveRegion="assertive"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent"> android:layout_height="match_parent">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment