Missing media description for previews

This commit is contained in:
Thomas 2023-02-05 18:53:05 +01:00
parent 663e33466d
commit 7603db8ce0
2 changed files with 5 additions and 1 deletions

View file

@ -2259,6 +2259,9 @@ public class StatusAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder>
if ((!fullAttachement || statusToDeal.sensitive) && !singleImage) { if ((!fullAttachement || statusToDeal.sensitive) && !singleImage) {
layoutMediaBinding.count.setText(String.format(Locale.getDefault(), "%d/%d", mediaPosition, statusToDeal.media_attachments.size())); layoutMediaBinding.count.setText(String.format(Locale.getDefault(), "%d/%d", mediaPosition, statusToDeal.media_attachments.size()));
} }
if (attachment.description != null && attachment.description.trim().length() > 0) {
layoutMediaBinding.media.setContentDescription(attachment.description.trim());
}
String finalUrl; String finalUrl;
if (attachment.url == null) { if (attachment.url == null) {
finalUrl = attachment.remote_url; finalUrl = attachment.remote_url;

View file

@ -9,8 +9,9 @@ Added:
Fixed: Fixed:
- Dynamic color for Android 12+ - Dynamic color for Android 12+
- Missing media description for previews
- Fix a crash when replying - Fix a crash when replying
- Fix button size not changed - Fix button size not changed
- Forward tags in replies - Forward tags in replies
- Media cannot be downloaded or shared with Android 10 - Media cannot be downloaded or shared with Android 10
- Some crashes - Some crashes