New message notifications high priority

This commit is contained in:
M66B 2018-11-05 07:48:02 +00:00
parent 444ed41e50
commit dacbc46746
2 changed files with 3 additions and 3 deletions

View File

@ -75,7 +75,7 @@ public class ApplicationEx extends Application {
NotificationChannel notification = new NotificationChannel(
"notification",
getString(R.string.channel_notification),
NotificationManager.IMPORTANCE_DEFAULT);
NotificationManager.IMPORTANCE_HIGH);
nm.createNotificationChannel(notification);
NotificationChannel error = new NotificationChannel(

View File

@ -375,7 +375,7 @@ public class ServiceSynchronize extends LifecycleService {
.setNumber(messages.size())
.setShowWhen(false)
.setDeleteIntent(piClear)
.setPriority(Notification.PRIORITY_DEFAULT)
.setPriority(Notification.PRIORITY_HIGH)
.setCategory(Notification.CATEGORY_STATUS)
.setVisibility(Notification.VISIBILITY_PRIVATE)
.setGroup(BuildConfig.APPLICATION_ID)
@ -457,7 +457,7 @@ public class ServiceSynchronize extends LifecycleService {
.setSound(uri)
.setWhen(message.sent == null ? message.received : message.sent)
.setDeleteIntent(piDelete)
.setPriority(Notification.PRIORITY_DEFAULT)
.setPriority(Notification.PRIORITY_HIGH)
.setCategory(Notification.CATEGORY_STATUS)
.setVisibility(Notification.VISIBILITY_PRIVATE)
.setGroup(BuildConfig.APPLICATION_ID)