From daee25ec42fcc559613e6dd5d5b5f9e8373b65e6 Mon Sep 17 00:00:00 2001 From: sonora Date: Thu, 16 Apr 2015 21:48:47 +0200 Subject: [PATCH] always check LastTrackPointTime --- OsmAnd/src/net/osmand/plus/activities/SavingTrackHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/activities/SavingTrackHelper.java b/OsmAnd/src/net/osmand/plus/activities/SavingTrackHelper.java index 6f9ee47997..6bab63e96c 100644 --- a/OsmAnd/src/net/osmand/plus/activities/SavingTrackHelper.java +++ b/OsmAnd/src/net/osmand/plus/activities/SavingTrackHelper.java @@ -143,7 +143,7 @@ public class SavingTrackHelper extends SQLiteOpenHelper { return true; } q = db.query(false, POINT_NAME, new String[0], null, null, null, null, null, null); - has = q.moveToFirst(); + has = q.moveToFirst() && (getLastTrackPointTime() > 0L); q.close(); if (has) { return true;