From 71eeb7ca83f12f77baeff3d51091ab849477cd2e Mon Sep 17 00:00:00 2001 From: Jake McGinty Date: Sat, 14 Mar 2015 17:53:07 -0700 Subject: [PATCH] Fix ClassCastException for notifications Resolves #2691 Closes #2692 // FREEBIE --- src/org/thoughtcrime/securesms/ConversationItem.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/org/thoughtcrime/securesms/ConversationItem.java b/src/org/thoughtcrime/securesms/ConversationItem.java index f8b9a56313..b6fb8395f7 100644 --- a/src/org/thoughtcrime/securesms/ConversationItem.java +++ b/src/org/thoughtcrime/securesms/ConversationItem.java @@ -248,7 +248,9 @@ public class ConversationItem extends LinearLayout { } private boolean hasMedia(MessageRecord messageRecord) { - return messageRecord.isMms() && ((MediaMmsMessageRecord)messageRecord).getPartCount() > 0; + return messageRecord.isMms() && + !messageRecord.isMmsNotification() && + ((MediaMmsMessageRecord)messageRecord).getPartCount() > 0; } private void setBodyText(MessageRecord messageRecord) {