fix recording buttons for where points have been logged but not distance
This commit is contained in:
parent
7ea50b8636
commit
79c9b568e4
1 changed files with 1 additions and 1 deletions
|
@ -160,7 +160,7 @@ public class GpxNotification extends OsmandNotification {
|
|||
Intent stopIntent = new Intent(OSMAND_STOP_GPX_SERVICE_ACTION);
|
||||
PendingIntent stopPendingIntent = PendingIntent.getBroadcast(app, 0, stopIntent,
|
||||
PendingIntent.FLAG_UPDATE_CURRENT);
|
||||
if (app.getSavingTrackHelper().getDistance() > 0) {
|
||||
if (app.getSavingTrackHelper().getTrkPoints() > 0) {
|
||||
notificationBuilder.addAction(R.drawable.ic_notification_pause,
|
||||
app.getString(R.string.shared_string_pause), stopPendingIntent);
|
||||
notificationBuilder.addAction(R.drawable.ic_notification_save,
|
||||
|
|
Loading…
Reference in a new issue