fix a bug where sender wasn't hidden

now for real
This commit is contained in:
l3d00m
2015-10-19 20:05:17 +02:00
parent 61c1013886
commit b18ec22f82
@@ -577,17 +577,18 @@ public class NotificationManager {
inboxStyle.addLine(message1.mBody);
}
NotificationCompat.Style stylen;
if (privateNotifications == 0) stylen = inboxStyle;
else stylen = null;
String notificationTitle = message.mContact;
if (!(privateNotifications == 0)) inboxStyle = null;
if (privateNotifications == 2) notificationTitle = "QKSMS";
int unreadMessageCount = SmsHelper.getUnreadMessageCount(context);
builder.setContentTitle("QKSMS")
builder.setContentTitle(notificationTitle)
.setContentText(SmsHelper.getUnseenSMSCount(context, threadId) + " " + sRes.getString(R.string.new_messages))
.setLargeIcon(getLargeIcon(context, Contact.get(message.mAddress, false), privateNotifications))
.setContentIntent(threadPI)
.setNumber(unreadMessageCount)
.setStyle(stylen)
.setStyle(inboxStyle)
.addAction(R.drawable.ic_reply, sRes.getString(R.string.reply), replyPI)
.addAction(R.drawable.ic_accept, sRes.getString(R.string.read), readPI)
.extend(WearableIntentReceiver.getSingleConversationExtender(context, message.mContact, message.mAddress, threadId))