mirror of
https://github.com/M66B/FairEmail.git
synced 2025-03-06 19:48:48 +00:00
Delay notification update only
This commit is contained in:
parent
1c6ea852cc
commit
d6f142be77
1 changed files with 7 additions and 5 deletions
|
@ -5712,7 +5712,9 @@ class Core {
|
||||||
try {
|
try {
|
||||||
if (NotificationHelper.areNotificationsEnabled(nm)) {
|
if (NotificationHelper.areNotificationsEnabled(nm)) {
|
||||||
nm.notify(tag, NotificationHelper.NOTIFICATION_TAGGED, notification);
|
nm.notify(tag, NotificationHelper.NOTIFICATION_TAGGED, notification);
|
||||||
|
if (update.contains(id))
|
||||||
try {
|
try {
|
||||||
|
Log.i("Notify delay id=" + id);
|
||||||
Thread.sleep(NOTIFY_DELAY);
|
Thread.sleep(NOTIFY_DELAY);
|
||||||
} catch (InterruptedException ex) {
|
} catch (InterruptedException ex) {
|
||||||
Log.w(ex);
|
Log.w(ex);
|
||||||
|
|
Loading…
Add table
Reference in a new issue