mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-29 13:24:52 +02:00
View first media image
This commit is contained in:
@@ -3542,7 +3542,12 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
|
||||
db.attachment().setMediaUri(attachment.id, uri.toString());
|
||||
}
|
||||
|
||||
return collection;
|
||||
// Viewing the containing folder is not possible
|
||||
for (EntityAttachment attachment : attachments)
|
||||
if (attachment.media_uri != null)
|
||||
return Uri.parse(attachment.media_uri);
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user