Adds description to media

This commit is contained in:
stom79 2017-10-27 13:24:01 +02:00
parent fa1d976678
commit 1f90b26a34
1 changed files with 2 additions and 0 deletions

View File

@ -1268,6 +1268,8 @@ public class StatusListAdapter extends RecyclerView.Adapter implements OnPostAct
if( !url.trim().contains("missing.png"))
imageLoader.displayImage(url, imageView, optionsAttachment);
final int finalPosition = position;
if( attachment.getDescription() != null && !attachment.getDescription().equals("null"))
imageView.setContentDescription(attachment.getDescription());
imageView.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {