android/source/res/layout/activity_document_browser.xml |    1 +
 android/source/res/layout/toolbar_bottom.xml            |    7 +++++--
 android/source/res/values/strings.xml                   |    3 +++
 3 files changed, 9 insertions(+), 2 deletions(-)

New commits:
commit a21e7a76d745750dcea14bc6311e4f1766c3fa45
Author:     Michael Weghorn <m.wegh...@posteo.de>
AuthorDate: Thu Nov 9 10:24:13 2023 +0100
Commit:     Michael Weghorn <m.wegh...@posteo.de>
CommitDate: Thu Nov 9 12:59:28 2023 +0100

    android a11y: Add content labels
    
    Add a few content labels, so screen readers can
    present these UI elements in a more meaningful way.
    
    Reported by Google Play CI:
    
    > This item may not have a label readable by screen readers.
    > Learn more [1]
    
    [1] https://support.google.com/accessibility/android/answer/7158690
    
    Change-Id: Ic8e8885ed132367426207fad652e324ea4eb0790
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159206
    Tested-by: Jenkins
    Reviewed-by: Michael Weghorn <m.wegh...@posteo.de>

diff --git a/android/source/res/layout/activity_document_browser.xml 
b/android/source/res/layout/activity_document_browser.xml
index 23ef44f4e5dc..c4dcf3f0c8c1 100644
--- a/android/source/res/layout/activity_document_browser.xml
+++ b/android/source/res/layout/activity_document_browser.xml
@@ -116,6 +116,7 @@
 
     <com.google.android.material.floatingactionbutton.FloatingActionButton
         android:id="@+id/editFAB"
+        android:contentDescription="@string/create_file"
         android:layout_width="wrap_content"
         android:layout_height="wrap_content"
         android:clickable="true"
diff --git a/android/source/res/layout/toolbar_bottom.xml 
b/android/source/res/layout/toolbar_bottom.xml
index 8ac99a28650d..3fcd3bfc0fd0 100644
--- a/android/source/res/layout/toolbar_bottom.xml
+++ b/android/source/res/layout/toolbar_bottom.xml
@@ -466,7 +466,8 @@
             android:layout_weight="0.6"
             android:background="@drawable/image_button_background"
             android:padding="10dp"
-            android:src="@drawable/ic_search_direction_down" />
+            android:src="@drawable/ic_search_direction_down"
+            android:contentDescription="@string/search_find_next" />
 
         <ImageButton
             android:id="@+id/button_search_up"
@@ -475,7 +476,9 @@
             android:layout_weight="0.6"
             android:background="@drawable/image_button_background"
             android:padding="10dp"
-            android:src="@drawable/ic_search_direction_up" />
+            android:src="@drawable/ic_search_direction_up"
+            android:contentDescription="@string/search_find_previous" />
+            />
     </LinearLayout>
 
     <LinearLayout
diff --git a/android/source/res/values/strings.xml 
b/android/source/res/values/strings.xml
index 2cce872808e9..37ed16e4503c 100644
--- a/android/source/res/values/strings.xml
+++ b/android/source/res/values/strings.xml
@@ -15,6 +15,7 @@
     <string name="about_notice">Show Notice</string>
     <string name="about_moreinfo">More Info</string>
 
+    <string name="create_file">Create New File</string>
     <string name="new_textdocument">New Text Document</string>
     <string name="new_presentation">New Presentation</string>
     <string name="new_spreadsheet">New Spreadsheet</string>
@@ -26,6 +27,8 @@
     <string name="browser_app_name">LibreOffice Browser</string>
     <string name="menu_search">Search</string>
     <string name="search_not_found">Keyword not found</string>
+    <string name="search_find_next">Find Next</string>
+    <string name="search_find_previous">Find Previous</string>
     <string name="menu_preferences">Preferences</string>
     <string name="file_icon_desc">fileicon</string>
     <string name="title_recents">Recent files</string>

Reply via email to