Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Krishna Vemulavada
/
vera_2.1_app
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
f0e59434
authored
Apr 10, 2018
by
Kunj Gupta
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Added sub tile for notification in status bar.
parent
dd1b3eff
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletions
app/src/main/java/com/vsoft/servicenow/service/NotificationMessagingService.java
app/src/main/res/values/strings.xml
app/src/main/java/com/vsoft/servicenow/service/NotificationMessagingService.java
View file @
f0e59434
...
@@ -90,7 +90,8 @@ public class NotificationMessagingService extends FirebaseMessagingService {
...
@@ -90,7 +90,8 @@ public class NotificationMessagingService extends FirebaseMessagingService {
Uri
defaultSoundUri
=
RingtoneManager
.
getDefaultUri
(
RingtoneManager
.
TYPE_NOTIFICATION
);
Uri
defaultSoundUri
=
RingtoneManager
.
getDefaultUri
(
RingtoneManager
.
TYPE_NOTIFICATION
);
NotificationCompat
.
Builder
notificationBuilder
=
new
NotificationCompat
.
Builder
(
this
)
NotificationCompat
.
Builder
notificationBuilder
=
new
NotificationCompat
.
Builder
(
this
)
.
setSmallIcon
(
R
.
drawable
.
notification_icon
)
.
setSmallIcon
(
R
.
drawable
.
notification_icon
)
.
setContentTitle
(
notification
.
getTitle
())
.
setContentTitle
(
getString
(
R
.
string
.
notification_status_bar_title_string
))
.
setContentText
(
notification
.
getShortDescription
())
.
setAutoCancel
(
true
)
.
setAutoCancel
(
true
)
.
setContentIntent
(
pendingIntent
)
.
setContentIntent
(
pendingIntent
)
.
setSound
(
defaultSoundUri
);
.
setSound
(
defaultSoundUri
);
...
...
app/src/main/res/values/strings.xml
View file @
f0e59434
...
@@ -108,6 +108,7 @@
...
@@ -108,6 +108,7 @@
<string
name=
"notification_screen_action_bar_title_string"
>
Notifications
</string>
<string
name=
"notification_screen_action_bar_title_string"
>
Notifications
</string>
<string
name=
"notification_screen_empty_text_string"
>
No Notifications
</string>
<string
name=
"notification_screen_empty_text_string"
>
No Notifications
</string>
<string
name=
"go_to_notification_string"
>
Go to Notification
</string>
<string
name=
"go_to_notification_string"
>
Go to Notification
</string>
<string
name=
"notification_status_bar_title_string"
>
New Incident assigned to you
</string>
<!--Chat Related String-->
<!--Chat Related String-->
<string
name=
"chat_activity_label"
>
Vera
</string>
<string
name=
"chat_activity_label"
>
Vera
</string>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment