mirror of https://github.com/M66B/FairEmail.git
High importance = high priority notification
This commit is contained in:
parent
91dc834295
commit
7509e51f37
|
@ -898,7 +898,9 @@ class NotificationHelper {
|
||||||
.setShowWhen(true)
|
.setShowWhen(true)
|
||||||
.setSortKey(sortKey)
|
.setSortKey(sortKey)
|
||||||
.setDeleteIntent(piIgnore)
|
.setDeleteIntent(piIgnore)
|
||||||
.setPriority(NotificationCompat.PRIORITY_DEFAULT)
|
.setPriority(EntityMessage.PRIORITIY_HIGH.equals(message.importance)
|
||||||
|
? NotificationCompat.PRIORITY_HIGH
|
||||||
|
: NotificationCompat.PRIORITY_DEFAULT)
|
||||||
.setCategory(NotificationCompat.CATEGORY_EMAIL)
|
.setCategory(NotificationCompat.CATEGORY_EMAIL)
|
||||||
.setVisibility(notify_private
|
.setVisibility(notify_private
|
||||||
? NotificationCompat.VISIBILITY_PRIVATE
|
? NotificationCompat.VISIBILITY_PRIVATE
|
||||||
|
|
Loading…
Reference in New Issue