ソースを参照

a11y call items/states

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
Andy Scherzinger 4 年 前
コミット
e8f9d034ef

+ 4 - 0
app/src/main/res/layout/call_item.xml

@@ -2,6 +2,8 @@
   ~ Nextcloud Talk application
   ~
   ~ @author Mario Danic
+  ~ @author Andy Scherzinger
+  ~ Copyright (C) 2021 Andy Scherzinger <info@andy-scherzinger.de>
   ~ Copyright (C) 2017 Mario Danic <mario@lovelyhq.com>
   ~
   ~ This program is free software: you can redistribute it and/or modify
@@ -46,6 +48,7 @@
         android:layout_alignParentStart="true"
         android:layout_marginStart="8dp"
         android:layout_marginEnd="8dp"
+        android:contentDescription="@string/nc_remote_audio_off"
         android:src="@drawable/ic_mic_off_white_24px"
         android:visibility="invisible" />
 
@@ -56,6 +59,7 @@
         android:layout_below="@id/peer_nick_text_view"
         android:layout_marginStart="8dp"
         android:layout_toEndOf="@id/remote_audio_off"
+        android:contentDescription="@string/nc_remote_video_off"
         android:src="@drawable/ic_videocam_off_white_24px"
         android:visibility="invisible" />
 

+ 3 - 0
app/src/main/res/layout/call_states.xml

@@ -2,6 +2,8 @@
   ~ Nextcloud Talk application
   ~
   ~ @author Mario Danic
+  ~ @author Andy Scherzinger
+  ~ Copyright (C) 2021 Andy Scherzinger <info@andy-scherzinger.de>
   ~ Copyright (C) 2017-2019 Mario Danic <mario@lovelyhq.com>
   ~
   ~ This program is free software: you can redistribute it and/or modify
@@ -29,6 +31,7 @@
         android:layout_height="48dp"
         android:layout_above="@id/callStateTextView"
         android:layout_centerHorizontal="true"
+        android:contentDescription="@null"
         android:src="@drawable/ic_signal_wifi_off_white_24dp"
         android:visibility="gone" />
 

+ 2 - 0
app/src/main/res/values/strings.xml

@@ -278,6 +278,8 @@
     <string name="nc_formatted_message_you">You: %1$s</string>
     <string name="nc_message_read">Message read</string>
     <string name="nc_message_sent">Message sent</string>
+    <string name="nc_remote_video_off">Remote video off</string>
+    <string name="nc_remote_audio_off">Remote audio off</string>
 
     <!-- Contacts endless loading -->
     <string name="nc_no_more_load_retry">No more items to load. Refresh to retry.</string>