fix recording buttons for where points have been logged but not distance

This commit is contained in:
sonora 2020-05-14 00:34:19 +02:00
parent 7ea50b8636
commit 79c9b568e4

View file

@ -160,7 +160,7 @@ public class GpxNotification extends OsmandNotification {
Intent stopIntent = new Intent(OSMAND_STOP_GPX_SERVICE_ACTION); Intent stopIntent = new Intent(OSMAND_STOP_GPX_SERVICE_ACTION);
PendingIntent stopPendingIntent = PendingIntent.getBroadcast(app, 0, stopIntent, PendingIntent stopPendingIntent = PendingIntent.getBroadcast(app, 0, stopIntent,
PendingIntent.FLAG_UPDATE_CURRENT); PendingIntent.FLAG_UPDATE_CURRENT);
if (app.getSavingTrackHelper().getDistance() > 0) { if (app.getSavingTrackHelper().getTrkPoints() > 0) {
notificationBuilder.addAction(R.drawable.ic_notification_pause, notificationBuilder.addAction(R.drawable.ic_notification_pause,
app.getString(R.string.shared_string_pause), stopPendingIntent); app.getString(R.string.shared_string_pause), stopPendingIntent);
notificationBuilder.addAction(R.drawable.ic_notification_save, notificationBuilder.addAction(R.drawable.ic_notification_save,