fixed text preview for images

This commit is contained in:
iNPUTmice 2015-02-01 12:32:19 +01:00
parent f542783761
commit d0e764c1a5

View file

@ -142,7 +142,7 @@ public class UIHelper {
} }
} else if (message.getEncryption() == Message.ENCRYPTION_PGP) { } else if (message.getEncryption() == Message.ENCRYPTION_PGP) {
return new Pair<>(context.getString(R.string.encrypted_message_received),true); 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) { if (message.getStatus() == Message.STATUS_RECEIVED) {
return new Pair<>(context.getString(R.string.received_x_file, return new Pair<>(context.getString(R.string.received_x_file,
getFileDescriptionString(context, message)), true); getFileDescriptionString(context, message)), true);