aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/eu/siacs
diff options
context:
space:
mode:
authoriNPUTmice <daniel@gultsch.de>2015-02-01 12:32:19 +0100
committeriNPUTmice <daniel@gultsch.de>2015-02-01 12:32:19 +0100
commitd0e764c1a50bfe13be7c5ca5e9c9a52c108abdaa (patch)
treee2e326743ad4224aa2bec97340be98ac28139ca4 /src/main/java/eu/siacs
parentf5427837618b8fabd4e24c9ef19769bf6e60502b (diff)
fixed text preview for images
Diffstat (limited to 'src/main/java/eu/siacs')
-rw-r--r--src/main/java/eu/siacs/conversations/utils/UIHelper.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/eu/siacs/conversations/utils/UIHelper.java b/src/main/java/eu/siacs/conversations/utils/UIHelper.java
index ffb9390f..235ef84c 100644
--- a/src/main/java/eu/siacs/conversations/utils/UIHelper.java
+++ b/src/main/java/eu/siacs/conversations/utils/UIHelper.java
@@ -142,7 +142,7 @@ public class UIHelper {
}
} else if (message.getEncryption() == Message.ENCRYPTION_PGP) {
return new Pair<>(context.getString(R.string.encrypted_message_received),true);
- } else if (message.getType() == Message.TYPE_FILE) {
+ } else if (message.getType() == Message.TYPE_FILE || message.getType() == Message.TYPE_IMAGE) {
if (message.getStatus() == Message.STATUS_RECEIVED) {
return new Pair<>(context.getString(R.string.received_x_file,
getFileDescriptionString(context, message)), true);