Respect privacy settings on ticker content for Android <5

Fixes #5517
Closes #5592

// FREEBIE
This commit is contained in:
FeuRenard
2016-08-01 00:15:49 +02:00
committed by Moxie Marlinspike
parent e7ad77398f
commit a370f086c0
4 changed files with 16 additions and 11 deletions

View File

@@ -278,7 +278,8 @@ public class MessageNotifier {
if (signal) {
builder.setAlarms(notificationState.getRingtone(), notificationState.getVibrate());
builder.setTicker(notifications.get(0).getText());
builder.setTicker(notifications.get(0).getIndividualRecipient(),
notifications.get(0).getText());
}
((NotificationManager)context.getSystemService(Context.NOTIFICATION_SERVICE))