Fix ClassCastException for notifications

Resolves #2691
Closes #2692

// FREEBIE
This commit is contained in:
Jake McGinty 2015-03-14 17:53:07 -07:00 committed by Moxie Marlinspike
parent 186a5e4dfc
commit 71eeb7ca83

View File

@ -248,7 +248,9 @@ public class ConversationItem extends LinearLayout {
} }
private boolean hasMedia(MessageRecord messageRecord) { 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) { private void setBodyText(MessageRecord messageRecord) {