mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 10:49:06 +01:00
Show message/post count in notifications. Dev task #77.
This commit is contained in:
@@ -68,8 +68,9 @@ class AndroidNotificationManagerImpl implements AndroidNotificationManager {
|
||||
new NotificationCompat.Builder(appContext);
|
||||
b.setSmallIcon(R.drawable.message_notification_icon);
|
||||
b.setContentTitle(appContext.getText(R.string.app_name));
|
||||
b.setContentText(appContext.getText(
|
||||
R.string.private_message_notification_text));
|
||||
b.setContentText(appContext.getResources().getQuantityString(
|
||||
R.plurals.private_message_notification_text, privateTotal,
|
||||
privateTotal));
|
||||
b.setDefaults(DEFAULT_ALL);
|
||||
b.setOnlyAlertOnce(true);
|
||||
if(contactCounts.size() == 1) {
|
||||
@@ -126,8 +127,9 @@ class AndroidNotificationManagerImpl implements AndroidNotificationManager {
|
||||
new NotificationCompat.Builder(appContext);
|
||||
b.setSmallIcon(R.drawable.message_notification_icon);
|
||||
b.setContentTitle(appContext.getText(R.string.app_name));
|
||||
b.setContentText(appContext.getText(
|
||||
R.string.group_post_notification_text));
|
||||
b.setContentText(appContext.getResources().getQuantityString(
|
||||
R.plurals.group_post_notification_text, groupTotal,
|
||||
groupTotal));
|
||||
b.setDefaults(DEFAULT_ALL);
|
||||
b.setOnlyAlertOnce(true);
|
||||
if(groupCounts.size() == 1) {
|
||||
|
||||
Reference in New Issue
Block a user