fixed text preview for images
This commit is contained in:
parent
f542783761
commit
d0e764c1a5
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue