From 1d498443a826756b538dc073b348ba256db585ad Mon Sep 17 00:00:00 2001 From: "Igor B. Poretsky" Date: Fri, 8 Apr 2016 04:29:50 +0300 Subject: [PATCH] Filled contentDescription field of the download list item related buttons. --- OsmAnd/src/net/osmand/plus/download/ui/ItemViewHolder.java | 3 +++ .../src/net/osmand/plus/download/ui/LocalIndexesFragment.java | 1 + 2 files changed, 4 insertions(+) diff --git a/OsmAnd/src/net/osmand/plus/download/ui/ItemViewHolder.java b/OsmAnd/src/net/osmand/plus/download/ui/ItemViewHolder.java index 0e814e326d..b284093f1d 100644 --- a/OsmAnd/src/net/osmand/plus/download/ui/ItemViewHolder.java +++ b/OsmAnd/src/net/osmand/plus/download/ui/ItemViewHolder.java @@ -258,10 +258,13 @@ public class ItemViewHolder { final boolean isDownloading = context.getDownloadThread().isDownloading(item); if (isDownloading) { rightImageButton.setImageDrawable(getContentIcon(context, R.drawable.ic_action_remove_dark)); + rightImageButton.setContentDescription(context.getString(R.string.shared_string_cancel)); } else if(item.isDownloaded() && !item.isOutdated()) { rightImageButton.setImageDrawable(getContentIcon(context, R.drawable.ic_overflow_menu_white)); + rightImageButton.setContentDescription(context.getString(R.string.shared_string_more)); } else { rightImageButton.setImageDrawable(getContentIcon(context, R.drawable.ic_action_import)); + rightImageButton.setContentDescription(context.getString(R.string.shared_string_download)); } rightImageButton.setOnClickListener(action); } diff --git a/OsmAnd/src/net/osmand/plus/download/ui/LocalIndexesFragment.java b/OsmAnd/src/net/osmand/plus/download/ui/LocalIndexesFragment.java index 68b19eee39..9bea5dd273 100644 --- a/OsmAnd/src/net/osmand/plus/download/ui/LocalIndexesFragment.java +++ b/OsmAnd/src/net/osmand/plus/download/ui/LocalIndexesFragment.java @@ -1062,6 +1062,7 @@ public class LocalIndexesFragment extends OsmandExpandableListFragment implement options.setImageDrawable(ctx.getMyApplication().getIconsCache() .getThemedIcon(R.drawable.ic_overflow_menu_white)); + options.setContentDescription(ctx.getString(R.string.shared_string_more)); options.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) {