Skip to content

Commit

Permalink
Enforce maximum content width for open attachment view
Browse files Browse the repository at this point in the history
  • Loading branch information
tagavari committed Feb 16, 2021
1 parent 5674a0a commit ba4f74f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3204,6 +3204,7 @@ private void bindMessageAttachmentCommon(VHMessageStructure viewHolderStructure,
//Showing the open view
setAttachmentView(viewHolder, viewHolder.groupOpen);
viewHolder.labelOpen.setText(component.getFileName());
viewHolder.labelOpen.setMaxWidth(WindowHelper.getMaxMessageWidth(getResources()));
viewHolder.itemView.setOnClickListener(view -> IntentHelper.openAttachmentFile(Messaging.this, component.getFile(), component.getContentType()));

//Setting up the content view
Expand Down

0 comments on commit ba4f74f

Please sign in to comment.