Filled contentDescription field of the download list item related buttons.
This commit is contained in:
parent
41a593a52b
commit
1d498443a8
2 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue