mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-01 12:44:42 +00:00
New message notifications high priority
This commit is contained in:
parent
444ed41e50
commit
dacbc46746
2 changed files with 3 additions and 3 deletions
|
@ -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…
Reference in a new issue