Skip to content
Snippets Groups Projects
Verified Commit 94ce89b3 authored by Torsten Grote's avatar Torsten Grote
Browse files

Introduce string resource for notification content

parent 928bc0ff
No related branches found
No related tags found
1 merge request!2Add Hilt and inject new MailboxNotificationManager
......@@ -50,8 +50,8 @@ class MailboxNotificationManager @Inject constructor(
ctx, 0, notificationIntent, 0
)
return NotificationCompat.Builder(ctx, CHANNEL_ID)
.setContentTitle(ctx.getString(R.string.notification_mailbox_running))
.setContentText("Waiting for messages...")
.setContentTitle(ctx.getString(R.string.notification_mailbox_title))
.setContentText(ctx.getString(R.string.notification_mailbox_content))
.setSmallIcon(R.drawable.ic_launcher_foreground)
.setContentIntent(pendingIntent)
.setPriority(PRIORITY_MIN)
......
<resources>
<string name="app_name">Briar Mailbox</string>
<string name="notification_channel_name">Briar Mailbox Channel</string>
<string name="notification_mailbox_running">Briar Mailbox running</string>
<string name="notification_mailbox_title">Briar Mailbox running</string>
<string name="notification_mailbox_content">Waiting for messages…</string>
</resources>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment