aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2019-02-09 22:50:18 +0100
committerChristian Schneppe <christian@pix-art.de>2019-02-09 22:50:18 +0100
commit9648ce71a6b2a1b940fec148c350ef944eaeeeee (patch)
tree57ff0a0dc18968b185f31f87e127e7c09606f80a /src/main/java
parentadd92c9ece36e53051bbceb04276888459688fa5 (diff)
load FileOrImage before web preview
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/de/pixart/messenger/ui/adapter/MessageAdapter.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/adapter/MessageAdapter.java b/src/main/java/de/pixart/messenger/ui/adapter/MessageAdapter.java
index 3f77070a4..3215c9ef0 100644
--- a/src/main/java/de/pixart/messenger/ui/adapter/MessageAdapter.java
+++ b/src/main/java/de/pixart/messenger/ui/adapter/MessageAdapter.java
@@ -1010,8 +1010,6 @@ public class MessageAdapter extends ArrayAdapter<Message> implements CopyTextVie
} else {
if (message.isGeoUri()) {
displayLocationMessage(viewHolder, message);
- } else if (message.isWebUri()) {
- displayRichLinkMessage(viewHolder, message, darkBackground);
} else if (message.bodyIsOnlyEmojis() && message.getType() != Message.TYPE_PRIVATE) {
displayEmojiMessage(viewHolder, message.getBody().trim(), darkBackground);
} else if (message.isXmppUri()) {
@@ -1037,6 +1035,8 @@ public class MessageAdapter extends ArrayAdapter<Message> implements CopyTextVie
activity.getString(R.string.check_x_filesize,
UIHelper.getFileDescriptionString(activity, message)));
}
+ } else if (message.isWebUri()) {
+ displayRichLinkMessage(viewHolder, message, darkBackground);
} else {
displayTextMessage(viewHolder, message, darkBackground, type);
}