@@ -362,7 +362,7 @@ class NotificationService(val context: Context) {
)
channel
}
5->{
PRIORITY_MAX->{
valchannel=NotificationChannel(CHANNEL_ID_MAX,context.getString(R.string.channel_notifications_max_name),NotificationManager.IMPORTANCE_HIGH)// IMPORTANCE_MAX does not exist
channel.enableLights(true)
channel.enableVibration(true)
@@ -385,10 +385,10 @@ class NotificationService(val context: Context) {
privatefuntoChannelId(priority:Int):String{
returnwhen(priority){
1->CHANNEL_ID_MIN
2->CHANNEL_ID_LOW
4->CHANNEL_ID_HIGH
5->CHANNEL_ID_MAX
PRIORITY_MIN->CHANNEL_ID_MIN
PRIORITY_LOW->CHANNEL_ID_LOW
PRIORITY_HIGH->CHANNEL_ID_HIGH
PRIORITY_MAX->CHANNEL_ID_MAX
else->CHANNEL_ID_DEFAULT
}
}
@@ -400,11 +400,10 @@ class NotificationService(val context: Context) {