Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Frank Tobin
Nebulo
Commits
b18b8ab1
Commit
b18b8ab1
authored
Jan 01, 2021
by
Frank Tobin
Browse files
fix notification channel for DNS Rule Import finish
parent
ce9d2eaa
Pipeline
#7695
failed with stage
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
app/src/main/java/com/frostnerd/smokescreen/service/RuleImportService.kt
View file @
b18b8ab1
...
...
@@ -130,7 +130,7 @@ class RuleImportService : IntentService("RuleImportService") {
}
private
fun
showSuccessNotification
()
{
val
successNotification
=
NotificationCompat
.
Builder
(
this
,
Notifications
.
getD
efaultNotification
ChannelId
(
this
))
val
successNotification
=
NotificationCompat
.
Builder
(
this
,
Notifications
.
getD
nsRule
ChannelId
(
this
))
successNotification
.
setSmallIcon
(
R
.
drawable
.
ic_mainnotification
)
successNotification
.
setAutoCancel
(
true
)
successNotification
.
setContentTitle
(
getString
(
R
.
string
.
notification_ruleimportfinished_title
))
...
...
@@ -438,4 +438,4 @@ class RuleImportService : IntentService("RuleImportService") {
override
fun
onBind
(
intent
:
Intent
?):
IBinder
?
{
return
null
}
}
\ No newline at end of file
}
Write
Preview
Supports
Markdown
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