Skip to content

Commit

Permalink
Merge pull request #249 from chenxiaolong/notification_high_importance
Browse files Browse the repository at this point in the history
Notifications.kt: Set persistent notifications' default priority to high
  • Loading branch information
chenxiaolong authored Feb 18, 2023
2 parents 4fdb836 + 97e9b73 commit 8b92b7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/main/java/com/chiller3/bcr/Notifications.kt
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,12 @@ class Notifications(
private val notificationManager = context.getSystemService(NotificationManager::class.java)

/**
* Create a low priority notification channel for the persistent notification.
* Create a high priority notification channel for the persistent notification.
*/
private fun createPersistentChannel() = NotificationChannel(
CHANNEL_ID_PERSISTENT,
context.getString(R.string.notification_channel_persistent_name),
NotificationManager.IMPORTANCE_LOW,
NotificationManager.IMPORTANCE_HIGH,
).apply {
description = context.getString(R.string.notification_channel_persistent_desc)
}
Expand Down

0 comments on commit 8b92b7b

Please sign in to comment.