fix second occurrence

This commit is contained in:
sonora 2020-05-14 00:54:59 +02:00
parent 79c9b568e4
commit 76674d9acd

View file

@ -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,