From 93cd7048e8370c629e72ad751e7b1fef15a78bf2 Mon Sep 17 00:00:00 2001 From: stom79 Date: Mon, 10 Dec 2018 09:37:04 +0100 Subject: [PATCH] some more content descriptions - #623 --- .../drawers/AccountsInAListAdapter.java | 2 ++ app/src/main/res/layout/dialog_profile.xml | 11 ++++------ app/src/main/res/layout/drawer_account.xml | 5 +++-- .../layout/drawer_account_follow_request.xml | 4 +--- .../main/res/layout/drawer_account_list.xml | 4 ++-- .../res/layout/drawer_account_main_search.xml | 3 +-- .../main/res/layout/drawer_account_reply.xml | 3 +-- .../main/res/layout/drawer_account_search.xml | 3 +-- .../res/layout/drawer_account_search_dev.xml | 3 ++- .../res/layout/drawer_account_search_html.xml | 3 ++- app/src/main/res/layout/drawer_domain.xml | 2 +- app/src/main/res/layout/drawer_draft.xml | 6 ++---- .../main/res/layout/drawer_emoji_search.xml | 2 +- .../main/res/layout/drawer_notification.xml | 21 +++++++++---------- app/src/main/res/values/strings.xml | 4 ++++ 15 files changed, 37 insertions(+), 39 deletions(-) diff --git a/app/src/main/java/fr/gouv/etalab/mastodon/drawers/AccountsInAListAdapter.java b/app/src/main/java/fr/gouv/etalab/mastodon/drawers/AccountsInAListAdapter.java index 67976910e..53b81c0c2 100644 --- a/app/src/main/java/fr/gouv/etalab/mastodon/drawers/AccountsInAListAdapter.java +++ b/app/src/main/java/fr/gouv/etalab/mastodon/drawers/AccountsInAListAdapter.java @@ -92,8 +92,10 @@ public class AccountsInAListAdapter extends RecyclerView.Adapter implements OnLi if( actionType == type.CURRENT){ holder.account_action.setImageResource(R.drawable.ic_close); + holder.account_action.setContentDescription(context.getString(R.string.remove_account)); }else if(actionType == type.SEARCH){ holder.account_action.setImageResource(R.drawable.ic_add); + holder.account_action.setContentDescription(context.getString(R.string.add_account)); } holder.account_action.setOnClickListener(new View.OnClickListener() { @Override diff --git a/app/src/main/res/layout/dialog_profile.xml b/app/src/main/res/layout/dialog_profile.xml index 3d9d4c2d0..0e9554362 100644 --- a/app/src/main/res/layout/dialog_profile.xml +++ b/app/src/main/res/layout/dialog_profile.xml @@ -15,13 +15,10 @@ You should have received a copy of the GNU General Public License along with Mastalab; if not, see . --> - + android:background="@color/background_image"> + android:contentDescription="@string/profile_banner" /> + android:contentDescription="@string/profile_picture" /> . --> + android:contentDescription="@string/profile_picture"/> diff --git a/app/src/main/res/layout/drawer_account_follow_request.xml b/app/src/main/res/layout/drawer_account_follow_request.xml index 52af2cafa..8790f1b3a 100644 --- a/app/src/main/res/layout/drawer_account_follow_request.xml +++ b/app/src/main/res/layout/drawer_account_follow_request.xml @@ -16,7 +16,6 @@ see . --> + android:contentDescription="@string/profile_picture"/> . --> + android:contentDescription="@string/profile_picture" /> + . --> + android:contentDescription="@string/profile_picture" /> + android:contentDescription="@string/profile_picture" /> + android:contentDescription="@string/profile_picture" /> + android:contentDescription="@string/profile_picture"/> + android:contentDescription="@string/profile_picture" /> + android:contentDescription="@string/delete_domain" /> \ No newline at end of file diff --git a/app/src/main/res/layout/drawer_draft.xml b/app/src/main/res/layout/drawer_draft.xml index c00591a46..3a28f13c5 100644 --- a/app/src/main/res/layout/drawer_draft.xml +++ b/app/src/main/res/layout/drawer_draft.xml @@ -16,13 +16,11 @@ see . --> + android:orientation="horizontal"> + android:contentDescription="@string/remove_draft" /> \ No newline at end of file diff --git a/app/src/main/res/layout/drawer_emoji_search.xml b/app/src/main/res/layout/drawer_emoji_search.xml index e9ee582dc..a5a720539 100644 --- a/app/src/main/res/layout/drawer_emoji_search.xml +++ b/app/src/main/res/layout/drawer_emoji_search.xml @@ -30,7 +30,7 @@ android:id="@+id/emoji_icon" android:layout_width="30dp" android:layout_height="30dp" - tools:ignore="ContentDescription" /> + android:contentDescription="@string/custom_emoji_picker" /> + android:contentDescription="@string/profile_picture"/> + android:contentDescription="@string/delete_notification" /> + android:layout_height="match_parent" /> + android:contentDescription="@string/play_video" /> + /> + android:contentDescription="@string/play_video" /> + /> + android:contentDescription="@string/play_video" /> + /> + android:contentDescription="@string/play_video" /> diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index d81ddc67e..3b90534f1 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -701,6 +701,10 @@ Emoji picker Refresh Expand the conversation + Remove an account + Delete the blocked domain + Custom emoji picker + Play video Never