Merge remote-tracking branch 'origin/master'

This commit is contained in:
Weblate 2015-04-16 15:48:21 +02:00
commit c1b412071e

View file

@ -136,7 +136,8 @@ public class SavingTrackHelper extends SQLiteOpenHelper {
if (db != null) { if (db != null) {
try { try {
Cursor q = db.query(false, TRACK_NAME, new String[0], null, null, null, null, null, null); Cursor q = db.query(false, TRACK_NAME, new String[0], null, null, null, null, null, null);
boolean has = q.moveToFirst(); //Looks like db is created even if user cancels out of "start recording" dialogue, hence also ask if db contains track points at all here
boolean has = q.moveToFirst() && (getLastTrackPointTime() > 0L);
q.close(); q.close();
if (has) { if (has) {
return true; return true;