Skip to content

Commit

Permalink
Add some accessibility labels for the camera screen.
Browse files Browse the repository at this point in the history
  • Loading branch information
greyson-signal committed Mar 24, 2023
1 parent b9b6a57 commit b67dfe1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/src/main/res/layout/camera_controls_portrait.xml
Expand Up @@ -77,6 +77,7 @@
android:background="@drawable/v2_media_count_indicator_background"
android:minHeight="44dp"
android:visibility="gone"
android:contentDescription="@string/CameraControls_continue_button_accessibility_label"
app:layout_constraintBottom_toBottomOf="@id/camera_capture_button"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="@id/camera_capture_button"
Expand All @@ -88,6 +89,7 @@
android:layout_height="0dp"
android:alpha="0"
android:background="@color/white"
android:contentDescription="@string/CameraControls_capture_button_accessibility_label"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
Expand Down
5 changes: 5 additions & 0 deletions app/src/main/res/values/strings.xml
Expand Up @@ -5843,5 +5843,10 @@
<!-- Displayed when the user turns off their mic -->
<string name="CallStateUpdatePopupWindow__mic_off">Mic off</string>

<!-- Accessibility label describing the capture button on the camera screen -->
<string name="CameraControls_capture_button_accessibility_label">Capture Button</string>
<!-- Accessibility label describing the continue button on the camera screen -->
<string name="CameraControls_continue_button_accessibility_label">Continue Button</string>

<!-- EOF -->
</resources>

0 comments on commit b67dfe1

Please sign in to comment.