remove 'Media message:' prefix from MMS notification notification

Fixes #2928
Closes #3152

// FREEBIE
This commit is contained in:
Rhodey Orbits 2015-05-11 19:44:25 -07:00 committed by Moxie Marlinspike
parent 488767550e
commit ee73883214

View File

@ -388,7 +388,7 @@ public class MessageNotifier {
body = SpanUtil.italic(context.getString(R.string.MessageNotifier_encrypted_message));
} else if (record.isMms() && TextUtils.isEmpty(body)) {
body = SpanUtil.italic(context.getString(R.string.MessageNotifier_media_message));
} else if (record.isMms()) {
} else if (record.isMms() && !record.isMmsNotification()) {
String message = context.getString(R.string.MessageNotifier_media_message_with_text, body);
int italicLength = message.length() - body.length();
body = SpanUtil.italic(message, italicLength);