Commit 2fa0dd01 authored by Thomas's avatar Thomas
Browse files

Fix issue #432

parent 4b579bbb
Pipeline #298956 passed with stage
in 3 minutes and 28 seconds
...@@ -3152,23 +3152,16 @@ public class StatusListAdapter extends RecyclerView.Adapter implements OnPostAct ...@@ -3152,23 +3152,16 @@ public class StatusListAdapter extends RecyclerView.Adapter implements OnPostAct
else else
holder.status_document_container.setVisibility(View.VISIBLE); holder.status_document_container.setVisibility(View.VISIBLE);
if (attachments.size() == 1) { if (attachments.size() == 1) {
if ((status.getCard() == null || status.getCard().getType().compareTo("video") != 0 || status.getCard().getImage() == null)) { if (!fullAttachement)
if (!fullAttachement) holder.status_container2.setVisibility(View.GONE);
holder.status_container2.setVisibility(View.GONE); else {
else { holder.status_prev1_h.setVisibility(View.VISIBLE);
holder.status_prev1_h.setVisibility(View.VISIBLE); holder.status_prev2_h.setVisibility(View.GONE);
holder.status_prev2_h.setVisibility(View.GONE); holder.status_prev3_h.setVisibility(View.GONE);
holder.status_prev3_h.setVisibility(View.GONE); holder.status_prev4_h.setVisibility(View.GONE);
holder.status_prev4_h.setVisibility(View.GONE); holder.horizontal_second_image.setVisibility(View.GONE);
holder.horizontal_second_image.setVisibility(View.GONE); }
} if (attachments.get(0).getUrl().trim().contains("missing.png")) {
if (attachments.get(0).getUrl().trim().contains("missing.png")) {
if (fullAttachement)
holder.status_horizontal_document_container.setVisibility(View.GONE);
else
holder.status_document_container.setVisibility(View.GONE);
}
} else {
if (fullAttachement) if (fullAttachement)
holder.status_horizontal_document_container.setVisibility(View.GONE); holder.status_horizontal_document_container.setVisibility(View.GONE);
else else
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment