Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Briar Mailbox
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
briar
Briar Mailbox
Commits
94ce89b3
Verified
Commit
94ce89b3
authored
3 years ago
by
Torsten Grote
Browse files
Options
Downloads
Patches
Plain Diff
Introduce string resource for notification content
parent
928bc0ff
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!2
Add Hilt and inject new MailboxNotificationManager
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
mailbox/src/main/java/org/briarproject/mailbox/MailboxNotificationManager.kt
+2
-2
2 additions, 2 deletions
...va/org/briarproject/mailbox/MailboxNotificationManager.kt
mailbox/src/main/res/values/strings.xml
+2
-1
2 additions, 1 deletion
mailbox/src/main/res/values/strings.xml
with
4 additions
and
3 deletions
mailbox/src/main/java/org/briarproject/mailbox/MailboxNotificationManager.kt
+
2
−
2
View file @
94ce89b3
...
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
mailbox/src/main/res/values/strings.xml
+
2
−
1
View file @
94ce89b3
<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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment