From 7db4d099743e72e28532187f75f58129f8b00e60 Mon Sep 17 00:00:00 2001 From: Christian S Date: Sat, 5 Mar 2016 11:16:43 +0100 Subject: show always buttons instead of links for files --- src/main/java/eu/siacs/conversations/ui/adapter/MessageAdapter.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/main') 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 16bde282d..85ee8d771 100644 --- a/src/main/java/eu/siacs/conversations/ui/adapter/MessageAdapter.java +++ b/src/main/java/eu/siacs/conversations/ui/adapter/MessageAdapter.java @@ -639,7 +639,8 @@ public class MessageAdapter extends ArrayAdapter { 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) { try { URL url = new URL(message.getBody()); displayDownloadableMessage(viewHolder, -- cgit v1.2.3