diff options
author | Christian S <christian@pix-art.de> | 2016-01-19 20:13:47 +0100 |
---|---|---|
committer | Christian S <christian@pix-art.de> | 2016-01-19 20:13:47 +0100 |
commit | ae7d02b654575c08f330f96867f09a5518d0bc8d (patch) | |
tree | 6bb4f8274c6a8a982f7e30a449a72cf2bcc5abe4 /src/main/java/eu/siacs/conversations/ui/adapter | |
parent | ae60bc265191eeb31bd5e96b030059ec4bd84027 (diff) |
possible fix for showing link instead of button for files
Diffstat (limited to 'src/main/java/eu/siacs/conversations/ui/adapter')
-rw-r--r-- | src/main/java/eu/siacs/conversations/ui/adapter/MessageAdapter.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/eu/siacs/conversations/ui/adapter/MessageAdapter.java b/src/main/java/eu/siacs/conversations/ui/adapter/MessageAdapter.java index a54407dec..780094585 100644 --- a/src/main/java/eu/siacs/conversations/ui/adapter/MessageAdapter.java +++ b/src/main/java/eu/siacs/conversations/ui/adapter/MessageAdapter.java @@ -587,7 +587,7 @@ public class MessageAdapter extends ArrayAdapter<Message> { displayLocationMessage(viewHolder,message); } else if (message.bodyIsHeart()) { displayHeartMessage(viewHolder, message.getBody().trim()); - } else if (message.treatAsDownloadable() == Message.Decision.MUST) { + } else if (message.treatAsDownloadable() == Message.Decision.MUST || message.treatAsDownloadable() == Message.Decision.SHOULD) { displayDownloadableMessage(viewHolder, message, activity.getString(R.string.check_x_filesize, UIHelper.getFileDescriptionString(activity, message))); } else { displayTextMessage(viewHolder, message, darkBackground); |