From 09bb853bf356d9809b0489790d4b7b4364a2073a Mon Sep 17 00:00:00 2001 From: tom79 Date: Tue, 7 May 2019 19:28:14 +0200 Subject: [PATCH] Fix for not cropped media --- .../etalab/mastodon/drawers/StatusListAdapter.java | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/app/src/main/java/fr/gouv/etalab/mastodon/drawers/StatusListAdapter.java b/app/src/main/java/fr/gouv/etalab/mastodon/drawers/StatusListAdapter.java index 01e9b284e..a1bc07ee1 100644 --- a/app/src/main/java/fr/gouv/etalab/mastodon/drawers/StatusListAdapter.java +++ b/app/src/main/java/fr/gouv/etalab/mastodon/drawers/StatusListAdapter.java @@ -1538,13 +1538,6 @@ public class StatusListAdapter extends RecyclerView.Adapter implements OnPostAct } - if( fullAttachement){ - int heigh = holder.status_horizontal_document_container.getHeight(); - RelativeLayout.LayoutParams rel_btn = new RelativeLayout.LayoutParams( - ViewGroup.LayoutParams.MATCH_PARENT, heigh); - holder.status_show_more.setLayoutParams(rel_btn); - } - if (status.getReblog() == null) { if (status.getMedia_attachments().size() < 1) { holder.status_horizontal_document_container.setVisibility(View.GONE); @@ -2956,9 +2949,6 @@ public class StatusListAdapter extends RecyclerView.Adapter implements OnPostAct resource = Bitmap.createScaledBitmap(resource, width, height, false); } imageView.setImageBitmap(resource); - notifyStatusChanged(status); - - } }); }