diff options
author | Docile-Alligator <25734209+Docile-Alligator@users.noreply.github.com> | 2024-09-05 03:47:04 +0000 |
---|---|---|
committer | Docile-Alligator <25734209+Docile-Alligator@users.noreply.github.com> | 2024-09-05 03:47:04 +0000 |
commit | 2d0675202f402bfde2ddd5f8572d1bfd5d76f91f (patch) | |
tree | b8e2f048e973b6f5c08f2160da80c2c5cd224523 /app | |
parent | ca42beeb17cfd1dbc99535809001b0316b79dd62 (diff) | |
download | infinity-for-reddit-2d0675202f402bfde2ddd5f8572d1bfd5d76f91f.tar infinity-for-reddit-2d0675202f402bfde2ddd5f8572d1bfd5d76f91f.tar.gz infinity-for-reddit-2d0675202f402bfde2ddd5f8572d1bfd5d76f91f.tar.bz2 infinity-for-reddit-2d0675202f402bfde2ddd5f8572d1bfd5d76f91f.tar.lz infinity-for-reddit-2d0675202f402bfde2ddd5f8572d1bfd5d76f91f.tar.xz infinity-for-reddit-2d0675202f402bfde2ddd5f8572d1bfd5d76f91f.tar.zst infinity-for-reddit-2d0675202f402bfde2ddd5f8572d1bfd5d76f91f.zip |
Start adding contentDescription for image views.
Diffstat (limited to '')
19 files changed, 60 insertions, 12 deletions
diff --git a/app/src/main/res/layout-land/activity_customize_comment_filter.xml b/app/src/main/res/layout-land/activity_customize_comment_filter.xml index b80b28e9..70adf41f 100644 --- a/app/src/main/res/layout-land/activity_customize_comment_filter.xml +++ b/app/src/main/res/layout-land/activity_customize_comment_filter.xml @@ -286,7 +286,8 @@ android:padding="16dp" android:background="?actionBarItemBackground" android:clickable="true" - android:focusable="true" /> + android:focusable="true" + android:contentDescription="@string/content_description_comment_filter_add_user" /> </LinearLayout> diff --git a/app/src/main/res/layout-land/activity_customize_post_filter.xml b/app/src/main/res/layout-land/activity_customize_post_filter.xml index 32197519..571d72b9 100644 --- a/app/src/main/res/layout-land/activity_customize_post_filter.xml +++ b/app/src/main/res/layout-land/activity_customize_post_filter.xml @@ -661,7 +661,8 @@ android:padding="16dp" android:background="?actionBarItemBackground" android:clickable="true" - android:focusable="true" /> + android:focusable="true" + android:contentDescription="@string/content_description_post_filter_add_subreddit" /> </LinearLayout> @@ -711,7 +712,8 @@ android:padding="16dp" android:background="?actionBarItemBackground" android:clickable="true" - android:focusable="true" /> + android:focusable="true" + android:contentDescription="@string/content_description_post_filter_add_user" /> </LinearLayout> diff --git a/app/src/main/res/layout-sw600dp/activity_customize_comment_filter.xml b/app/src/main/res/layout-sw600dp/activity_customize_comment_filter.xml index b80b28e9..70adf41f 100644 --- a/app/src/main/res/layout-sw600dp/activity_customize_comment_filter.xml +++ b/app/src/main/res/layout-sw600dp/activity_customize_comment_filter.xml @@ -286,7 +286,8 @@ android:padding="16dp" android:background="?actionBarItemBackground" android:clickable="true" - android:focusable="true" /> + android:focusable="true" + android:contentDescription="@string/content_description_comment_filter_add_user" /> </LinearLayout> diff --git a/app/src/main/res/layout-sw600dp/activity_customize_post_filter.xml b/app/src/main/res/layout-sw600dp/activity_customize_post_filter.xml index 32197519..571d72b9 100644 --- a/app/src/main/res/layout-sw600dp/activity_customize_post_filter.xml +++ b/app/src/main/res/layout-sw600dp/activity_customize_post_filter.xml @@ -661,7 +661,8 @@ android:padding="16dp" android:background="?actionBarItemBackground" android:clickable="true" - android:focusable="true" /> + android:focusable="true" + android:contentDescription="@string/content_description_post_filter_add_subreddit" /> </LinearLayout> @@ -711,7 +712,8 @@ android:padding="16dp" android:background="?actionBarItemBackground" android:clickable="true" - android:focusable="true" /> + android:focusable="true" + android:contentDescription="@string/content_description_post_filter_add_user" /> </LinearLayout> diff --git a/app/src/main/res/layout/activity_comment_filter_preference.xml b/app/src/main/res/layout/activity_comment_filter_preference.xml index 6f2b6051..d7594020 100644 --- a/app/src/main/res/layout/activity_comment_filter_preference.xml +++ b/app/src/main/res/layout/activity_comment_filter_preference.xml @@ -45,6 +45,7 @@ android:layout_height="wrap_content" android:layout_margin="@dimen/fab_margin" android:layout_gravity="bottom|end" + android:contentDescription="@string/content_description_create_comment_filter" app:backgroundTint="?attr/colorPrimaryLightTheme" app:srcCompat="@drawable/ic_add_day_night_24dp" app:tint="@android:color/white" /> diff --git a/app/src/main/res/layout/activity_comment_filter_usage_listing.xml b/app/src/main/res/layout/activity_comment_filter_usage_listing.xml index 75cfc4e3..9c6dd90a 100644 --- a/app/src/main/res/layout/activity_comment_filter_usage_listing.xml +++ b/app/src/main/res/layout/activity_comment_filter_usage_listing.xml @@ -45,6 +45,7 @@ android:layout_height="wrap_content" android:layout_margin="@dimen/fab_margin" android:layout_gravity="bottom|end" + android:contentDescription="@string/content_description_add_comment_filter_usage" app:backgroundTint="?attr/colorPrimaryLightTheme" app:srcCompat="@drawable/ic_add_day_night_24dp" app:tint="@android:color/white" /> diff --git a/app/src/main/res/layout/activity_custom_theme_listing.xml b/app/src/main/res/layout/activity_custom_theme_listing.xml index c694b6c2..e4dc1930 100644 --- a/app/src/main/res/layout/activity_custom_theme_listing.xml +++ b/app/src/main/res/layout/activity_custom_theme_listing.xml @@ -59,6 +59,7 @@ android:layout_height="wrap_content" android:layout_margin="@dimen/fab_margin" android:layout_gravity="bottom|end" + android:contentDescription="@string/content_description_create_custom_theme" app:backgroundTint="?attr/colorPrimaryLightTheme" app:srcCompat="@drawable/ic_add_day_night_24dp" app:tint="@android:color/white" /> diff --git a/app/src/main/res/layout/activity_customize_comment_filter.xml b/app/src/main/res/layout/activity_customize_comment_filter.xml index 1022e720..f8198e5f 100644 --- a/app/src/main/res/layout/activity_customize_comment_filter.xml +++ b/app/src/main/res/layout/activity_customize_comment_filter.xml @@ -271,7 +271,8 @@ android:padding="16dp" android:background="?actionBarItemBackground" android:clickable="true" - android:focusable="true" /> + android:focusable="true" + android:contentDescription="@string/content_description_comment_filter_add_user" /> </LinearLayout> diff --git a/app/src/main/res/layout/activity_customize_post_filter.xml b/app/src/main/res/layout/activity_customize_post_filter.xml index 575bc9c0..dbbdba12 100644 --- a/app/src/main/res/layout/activity_customize_post_filter.xml +++ b/app/src/main/res/layout/activity_customize_post_filter.xml @@ -650,7 +650,8 @@ android:padding="16dp" android:background="?actionBarItemBackground" android:clickable="true" - android:focusable="true" /> + android:focusable="true" + android:contentDescription="@string/content_description_post_filter_add_subreddit" /> </LinearLayout> @@ -700,7 +701,8 @@ android:padding="16dp" android:background="?actionBarItemBackground" android:clickable="true" - android:focusable="true" /> + android:focusable="true" + android:contentDescription="@string/content_description_post_filter_add_user" /> </LinearLayout> diff --git a/app/src/main/res/layout/activity_edit_profile.xml b/app/src/main/res/layout/activity_edit_profile.xml index 4f3ad007..c894fdc2 100644 --- a/app/src/main/res/layout/activity_edit_profile.xml +++ b/app/src/main/res/layout/activity_edit_profile.xml @@ -68,6 +68,7 @@ android:layout_margin="8dp" android:padding="8dp" android:background="@drawable/ic_dot_outline" + android:contentDescription="@string/content_description_change_banner" app:srcCompat="@drawable/ic_outline_add_a_photo_day_night_24dp" /> </FrameLayout> @@ -93,6 +94,7 @@ android:layout_gravity="center" android:padding="8dp" android:background="@drawable/ic_dot_outline" + android:contentDescription="@string/content_description_change_avatar" app:srcCompat="@drawable/ic_outline_add_a_photo_day_night_24dp" /> </FrameLayout> diff --git a/app/src/main/res/layout/activity_filtered_thing.xml b/app/src/main/res/layout/activity_filtered_thing.xml index 2632342e..4aae7921 100644 --- a/app/src/main/res/layout/activity_filtered_thing.xml +++ b/app/src/main/res/layout/activity_filtered_thing.xml @@ -45,6 +45,7 @@ android:layout_height="wrap_content" android:layout_margin="@dimen/fab_margin" android:layout_gravity="bottom|end" + android:contentDescription="@string/content_description_customize_post_filter" android:src="@drawable/ic_filter_24dp" /> </androidx.coordinatorlayout.widget.CoordinatorLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/activity_inbox.xml b/app/src/main/res/layout/activity_inbox.xml index 88c95af6..109ebafc 100644 --- a/app/src/main/res/layout/activity_inbox.xml +++ b/app/src/main/res/layout/activity_inbox.xml @@ -58,6 +58,7 @@ android:layout_height="wrap_content" android:layout_margin="@dimen/fab_margin" android:layout_gravity="bottom|end" + android:contentDescription="@string/content_description_compose_message" app:srcCompat="@drawable/ic_add_day_night_24dp" /> </androidx.coordinatorlayout.widget.CoordinatorLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/activity_login.xml b/app/src/main/res/layout/activity_login.xml index 1f7ef7c6..4c90577b 100644 --- a/app/src/main/res/layout/activity_login.xml +++ b/app/src/main/res/layout/activity_login.xml @@ -51,6 +51,7 @@ android:layout_height="wrap_content" android:layout_margin="@dimen/fab_margin" android:layout_gravity="bottom|end" + android:contentDescription="@string/content_description_alternative_login_method" android:src="@drawable/ic_login_24dp" /> </androidx.coordinatorlayout.widget.CoordinatorLayout> diff --git a/app/src/main/res/layout/activity_post_filter_application.xml b/app/src/main/res/layout/activity_post_filter_application.xml index cac8ca4f..7bf5b068 100644 --- a/app/src/main/res/layout/activity_post_filter_application.xml +++ b/app/src/main/res/layout/activity_post_filter_application.xml @@ -47,6 +47,7 @@ android:layout_gravity="bottom|end" app:backgroundTint="?attr/colorPrimaryLightTheme" app:srcCompat="@drawable/ic_add_day_night_24dp" + android:contentDescription="@string/content_description_add_post_filter_usage" app:tint="@android:color/white" /> </androidx.coordinatorlayout.widget.CoordinatorLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/activity_post_filter_preference.xml b/app/src/main/res/layout/activity_post_filter_preference.xml index 613d0e2b..7798261b 100644 --- a/app/src/main/res/layout/activity_post_filter_preference.xml +++ b/app/src/main/res/layout/activity_post_filter_preference.xml @@ -47,6 +47,7 @@ android:layout_gravity="bottom|end" app:backgroundTint="?attr/colorPrimaryLightTheme" app:srcCompat="@drawable/ic_add_day_night_24dp" + android:contentDescription="@string/content_description_create_post_filter" app:tint="@android:color/white" /> </androidx.coordinatorlayout.widget.CoordinatorLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/activity_post_image.xml b/app/src/main/res/layout/activity_post_image.xml index 23652e08..22c9f4f0 100644 --- a/app/src/main/res/layout/activity_post_image.xml +++ b/app/src/main/res/layout/activity_post_image.xml @@ -233,6 +233,7 @@ android:layout_height="wrap_content" android:layout_margin="16dp" android:src="@drawable/ic_outline_add_a_photo_24dp" + android:contentDescription="@string/content_description_capture_photo" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toStartOf="@+id/select_from_library_fab_post_image_activity" app:layout_constraintHorizontal_chainStyle="spread" @@ -246,6 +247,7 @@ android:layout_height="wrap_content" android:layout_margin="16dp" android:src="@drawable/ic_outline_select_photo_24dp" + android:contentDescription="@string/content_description_select_image" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" app:layout_constraintHorizontal_chainStyle="spread" @@ -272,7 +274,8 @@ android:layout_height="wrap_content" android:adjustViewBounds="true" android:scaleType="fitStart" - android:visibility="gone" /> + android:visibility="gone" + android:contentDescription="@string/content_description_selected_image" /> </LinearLayout> diff --git a/app/src/main/res/layout/activity_post_video.xml b/app/src/main/res/layout/activity_post_video.xml index 83081e3c..f84b84fe 100644 --- a/app/src/main/res/layout/activity_post_video.xml +++ b/app/src/main/res/layout/activity_post_video.xml @@ -233,6 +233,7 @@ android:layout_height="wrap_content" android:padding="16dp" android:src="@drawable/ic_outline_add_a_photo_24dp" + android:contentDescription="@string/content_description_record_video" app:useCompatPadding="true" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toStartOf="@+id/select_from_library_fab_post_video_activity" @@ -246,6 +247,7 @@ android:layout_height="wrap_content" android:padding="16dp" android:src="@drawable/ic_outline_select_photo_24dp" + android:contentDescription="@string/content_description_select_video" app:useCompatPadding="true" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" diff --git a/app/src/main/res/layout/activity_search.xml b/app/src/main/res/layout/activity_search.xml index 3d4d4738..62adf999 100644 --- a/app/src/main/res/layout/activity_search.xml +++ b/app/src/main/res/layout/activity_search.xml @@ -46,7 +46,8 @@ android:src="@drawable/ic_cancel_24dp" android:clickable="true" android:focusable="true" - android:background="?attr/actionBarItemBackground" /> + android:background="?attr/actionBarItemBackground" + android:contentDescription="@string/content_description_delete_texts" /> <ImageView android:id="@+id/link_handler_image_view_search_activity" @@ -56,7 +57,8 @@ android:src="@drawable/ic_open_link_24dp" android:clickable="true" android:focusable="true" - android:background="?attr/actionBarItemBackground" /> + android:background="?attr/actionBarItemBackground" + android:contentDescription="@string/content_description_handle_link" /> </LinearLayout> diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index ad3098b7..49f04e0a 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -1433,4 +1433,26 @@ <string name="comment_filter_min_vote_explanation">Comments that have a score lower than the following value will be filtered out (-1 means no restriction).</string> <string name="comment_filter_max_vote_explanation">Comments that have a score higher than the following value will be filtered out (-1 means no restriction).</string> + <string name="content_description_create_comment_filter">Create comment filter</string> + <string name="content_description_add_comment_filter_usage">Apply comment filter to somewhere</string> + <string name="content_description_comment_filter_add_user">Add a user to comment filter</string> + <string name="content_description_create_custom_theme">Create custom theme</string> + <string name="content_description_create_post_filter">Create post filter</string> + <string name="content_description_add_post_filter_usage">Apply post filter to somewhere</string> + <string name="content_description_post_filter_add_subreddit">Add a subreddit to post filter</string> + <string name="content_description_post_filter_add_user">Add a user to post filter</string> + <string name="content_description_change_banner">Change banner</string> + <string name="content_description_change_avatar">Change avatar</string> + <string name="content_description_customize_post_filter">Customize post filter</string> + <string name="content_description_compose_message">Compose message</string> + <string name="content_description_alternative_login_method">Alternative login method</string> + <string name="content_description_capture_photo">Capture photo</string> + <string name="content_description_select_image">Select image</string> + <string name="content_description_selected_image">Selected image</string> + <string name="content_description_record_video">Record video</string> + <string name="content_description_select_video">Select video</string> + <string name="content_description_delete_texts">Delete texts</string> + <string name="content_description_handle_link">Handle link</string> + + </resources> |