New message notifications high priority

pull/146/head
M66B 6 years ago
parent 444ed41e50
commit dacbc46746

@ -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(

@ -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)

Loading…
Cancel
Save