|
|
@ -5712,11 +5712,13 @@ 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);
|
|
|
|
try {
|
|
|
|
if (update.contains(id))
|
|
|
|
Thread.sleep(NOTIFY_DELAY);
|
|
|
|
try {
|
|
|
|
} catch (InterruptedException ex) {
|
|
|
|
Log.i("Notify delay id=" + id);
|
|
|
|
Log.w(ex);
|
|
|
|
Thread.sleep(NOTIFY_DELAY);
|
|
|
|
}
|
|
|
|
} catch (InterruptedException ex) {
|
|
|
|
|
|
|
|
Log.w(ex);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// https://github.com/leolin310148/ShortcutBadger/wiki/Xiaomi-Device-Support
|
|
|
|
// https://github.com/leolin310148/ShortcutBadger/wiki/Xiaomi-Device-Support
|
|
|
|