Commit 06a1a131 authored by Daniel Wolf's avatar Daniel Wolf
Browse files

Merge branch 'ftobin-master-patch-38890' into 'master'

fix notification channel for DNS Rule Import finish

See merge request PublicAndroidApps/smokescreen!61
parents ce9d2eaa b18b8ab1
...@@ -130,7 +130,7 @@ class RuleImportService : IntentService("RuleImportService") { ...@@ -130,7 +130,7 @@ class RuleImportService : IntentService("RuleImportService") {
} }
private fun showSuccessNotification() { private fun showSuccessNotification() {
val successNotification = NotificationCompat.Builder(this, Notifications.getDefaultNotificationChannelId(this)) val successNotification = NotificationCompat.Builder(this, Notifications.getDnsRuleChannelId(this))
successNotification.setSmallIcon(R.drawable.ic_mainnotification) successNotification.setSmallIcon(R.drawable.ic_mainnotification)
successNotification.setAutoCancel(true) successNotification.setAutoCancel(true)
successNotification.setContentTitle(getString(R.string.notification_ruleimportfinished_title)) successNotification.setContentTitle(getString(R.string.notification_ruleimportfinished_title))
...@@ -438,4 +438,4 @@ class RuleImportService : IntentService("RuleImportService") { ...@@ -438,4 +438,4 @@ class RuleImportService : IntentService("RuleImportService") {
override fun onBind(intent: Intent?): IBinder? { override fun onBind(intent: Intent?): IBinder? {
return null return null
} }
} }
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment