From 76674d9acdecdcb754fbb0d057e0129e5a8e62d7 Mon Sep 17 00:00:00 2001 From: sonora Date: Thu, 14 May 2020 00:54:59 +0200 Subject: [PATCH] fix second occurrence --- OsmAnd/src/net/osmand/plus/notifications/GpxNotification.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/notifications/GpxNotification.java b/OsmAnd/src/net/osmand/plus/notifications/GpxNotification.java index 6497386b6a..fc451db3ba 100644 --- a/OsmAnd/src/net/osmand/plus/notifications/GpxNotification.java +++ b/OsmAnd/src/net/osmand/plus/notifications/GpxNotification.java @@ -173,7 +173,7 @@ public class GpxNotification extends OsmandNotification { Intent startIntent = new Intent(OSMAND_START_GPX_SERVICE_ACTION); PendingIntent startPendingIntent = PendingIntent.getBroadcast(app, 0, startIntent, PendingIntent.FLAG_UPDATE_CURRENT); - if (recordedDistance > 0) { + if (app.getSavingTrackHelper().getTrkPoints() > 0) { notificationBuilder.addAction(R.drawable.ic_notification_rec_start, app.getString(R.string.shared_string_resume), startPendingIntent); notificationBuilder.addAction(R.drawable.ic_notification_save,