1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-03-06 11:39:49 +00:00

Delay notification update only

This commit is contained in:
M66B 2023-10-03 21:52:57 +02:00
parent 1c6ea852cc
commit d6f142be77

View file

@ -5712,11 +5712,13 @@ class Core {
try {
if (NotificationHelper.areNotificationsEnabled(nm)) {
nm.notify(tag, NotificationHelper.NOTIFICATION_TAGGED, notification);
try {
Thread.sleep(NOTIFY_DELAY);
} catch (InterruptedException ex) {
Log.w(ex);
}
if (update.contains(id))
try {
Log.i("Notify delay id=" + id);
Thread.sleep(NOTIFY_DELAY);
} catch (InterruptedException ex) {
Log.w(ex);
}
}
// https://github.com/leolin310148/ShortcutBadger/wiki/Xiaomi-Device-Support