Fix refresh notification bug
This commit is contained in:
parent
d4cff1c405
commit
b680721396
1 changed files with 4 additions and 4 deletions
|
@ -141,13 +141,13 @@ public abstract class OsmandNotification {
|
|||
if (isEnabled()) {
|
||||
Builder notificationBuilder = buildNotification(false);
|
||||
if (notificationBuilder != null) {
|
||||
Notification notification = getNotification(notificationBuilder);
|
||||
setupNotification(notification);
|
||||
currentNotification = notificationBuilder.build();
|
||||
setupNotification(currentNotification);
|
||||
if (top) {
|
||||
//notificationManager.cancel(getOsmandNotificationId());
|
||||
notificationManager.notify(TOP_NOTIFICATION_SERVICE_ID, notification);
|
||||
notificationManager.notify(TOP_NOTIFICATION_SERVICE_ID, currentNotification);
|
||||
} else {
|
||||
notificationManager.notify(getOsmandNotificationId(), notification);
|
||||
notificationManager.notify(getOsmandNotificationId(), currentNotification);
|
||||
}
|
||||
notifyWearable(notificationManager);
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue