diff options
author | Christian S <christian@pix-art.de> | 2016-03-05 11:16:43 +0100 |
---|---|---|
committer | Christian S <christian@pix-art.de> | 2016-03-05 11:16:43 +0100 |
commit | 7db4d099743e72e28532187f75f58129f8b00e60 (patch) | |
tree | 421c819994c10b604f12598d776029cdbde8b146 /src/main | |
parent | e0101b5098aed944c27312d09568e4fe72aa75e4 (diff) |
show always buttons instead of links for files
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/eu/siacs/conversations/ui/adapter/MessageAdapter.java | 3 |
1 files changed, 2 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 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<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) { try { URL url = new URL(message.getBody()); displayDownloadableMessage(viewHolder, |