Accessibility: Add missing image descriptions

Sam Whited created

Change summary

src/main/res/layout/account_row.xml           | 3 ++-
src/main/res/layout/activity_edit_account.xml | 6 ++++--
src/main/res/values/strings.xml               | 2 ++
3 files changed, 8 insertions(+), 3 deletions(-)

Detailed changes

src/main/res/layout/account_row.xml 🔗

@@ -10,7 +10,8 @@
         android:layout_width="48dp"
         android:layout_height="48dp"
         android:layout_alignParentLeft="true"
-        android:src="@drawable/ic_profile" >
+        android:src="@drawable/ic_profile"
+        android:contentDescription="@string/account_image_description">
     </ImageView>
 
     <LinearLayout

src/main/res/layout/activity_edit_account.xml 🔗

@@ -27,7 +27,8 @@
                     android:layout_width="72dp"
                     android:layout_height="72dp"
                     android:layout_alignParentTop="true"
-                    android:layout_marginRight="16dp"/>
+                    android:layout_marginRight="16dp"
+                    android:contentDescription="@string/account_image_description"/>
                 <LinearLayout
                     android:layout_width="fill_parent"
                     android:layout_height="wrap_content"
@@ -236,7 +237,8 @@
                         android:background="?android:selectableItemBackground"
                         android:padding="8dp"
                         android:src="@drawable/ic_action_copy"
-                        android:visibility="visible" />
+                        android:visibility="visible"
+                        android:contentDescription="@string/copy_otr_clipboard_description"/>
                 </RelativeLayout>
 
                

src/main/res/values/strings.xml 🔗

@@ -358,4 +358,6 @@
     <string name="conference_created">Conference created!</string>
     <string name="secret_accepted">Secret accepted!</string>
     <string name="reset">Reset</string>
+    <string name="account_image_description">Account avatar</string>
+    <string name="copy_otr_clipboard_description">Copy OTR fingerprint to clipboard</string>
 </resources>