mirror of
https://codeberg.org/tom79/Fedilab.git
synced 2025-03-27 09:09:57 +02:00
Fix a crash
This commit is contained in:
parent
0eb3552c3c
commit
35cd1b7b3e
1 changed files with 1 additions and 1 deletions
|
@ -3406,7 +3406,7 @@ public class StatusAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder>
|
|||
});
|
||||
}
|
||||
ConstraintLayout.LayoutParams lp;
|
||||
if(status.media_attachments.get(0).meta != null && status.media_attachments.get(0).meta.getSmall() != null) {
|
||||
if(!status.media_attachments.isEmpty() && status.media_attachments.get(0).meta != null && status.media_attachments.get(0).meta.getSmall() != null) {
|
||||
float mediaH = status.media_attachments.get(0).meta.getSmall().height;
|
||||
float mediaW = status.media_attachments.get(0).meta.getSmall().width;
|
||||
float ratio = measuredWidthArt > 0 ? measuredWidthArt / mediaW : 1.0f;
|
||||
|
|
Loading…
Reference in a new issue