From b6807213962bfc703dc4a7a8e6cc38f3abf931b7 Mon Sep 17 00:00:00 2001 From: Nazar Date: Thu, 29 Aug 2019 13:24:26 +0300 Subject: [PATCH] Fix refresh notification bug --- .../net/osmand/plus/notifications/OsmandNotification.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/notifications/OsmandNotification.java b/OsmAnd/src/net/osmand/plus/notifications/OsmandNotification.java index a38c74c579..eaea74cff0 100644 --- a/OsmAnd/src/net/osmand/plus/notifications/OsmandNotification.java +++ b/OsmAnd/src/net/osmand/plus/notifications/OsmandNotification.java @@ -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;