Switch from 'Contents Hidden' to 'New message'

Fixes #4004
Closes #4566
This commit is contained in:
char32 2015-11-17 00:55:22 +01:00 committed by Moxie Marlinspike
parent 64ee669728
commit 796decdb0f
2 changed files with 6 additions and 6 deletions

View File

@ -580,8 +580,8 @@
<string name="QuickResponseService_problem_sending_message">Problem sending message!</string>
<!-- SingleRecipientNotificationBuilder -->
<string name="SingleRecipientNotificationBuilder_new_signal_message">New Signal message</string>
<string name="SingleRecipientNotificationBuilder_contents_hidden">Contents hidden</string>
<string name="SingleRecipientNotificationBuilder_signal">Signal</string>
<string name="SingleRecipientNotificationBuilder_new_message">New Message!</string>
<!-- attachment_type_selector -->
<string name="attachment_type_selector__image">Image</string>

View File

@ -65,7 +65,7 @@ public class SingleRecipientNotificationBuilder extends AbstractNotificationBuil
.asDrawable(context, recipient.getColor()
.toConversationColor(context)));
} else {
setContentTitle(context.getString(R.string.SingleRecipientNotificationBuilder_new_signal_message));
setContentTitle(context.getString(R.string.SingleRecipientNotificationBuilder_signal));
setLargeIcon(Recipient.getUnknownRecipient()
.getContactPhoto()
.asDrawable(context, Recipient.getUnknownRecipient()
@ -84,7 +84,7 @@ public class SingleRecipientNotificationBuilder extends AbstractNotificationBuil
setContentText(message);
this.slideDeck = slideDeck;
} else {
setContentText(context.getString(R.string.SingleRecipientNotificationBuilder_contents_hidden));
setContentText(context.getString(R.string.SingleRecipientNotificationBuilder_new_message));
}
}
@ -131,9 +131,9 @@ public class SingleRecipientNotificationBuilder extends AbstractNotificationBuil
if (privacy.isDisplayMessage()) {
setTicker(getStyledMessage(recipient, message));
} else if (privacy.isDisplayContact()) {
setTicker(getStyledMessage(recipient, context.getString(R.string.SingleRecipientNotificationBuilder_new_signal_message)));
setTicker(getStyledMessage(recipient, context.getString(R.string.SingleRecipientNotificationBuilder_new_message)));
} else {
setTicker(context.getString(R.string.SingleRecipientNotificationBuilder_new_signal_message));
setTicker(context.getString(R.string.SingleRecipientNotificationBuilder_new_message));
}
}