reset to old version for now

This commit is contained in:
sonora 2015-04-16 22:45:47 +02:00
parent 266222ef7e
commit 07ccf77170

View file

@ -136,14 +136,13 @@ public class SavingTrackHelper extends SQLiteOpenHelper {
if (db != null) {
try {
Cursor q = db.query(false, TRACK_NAME, new String[0], null, null, null, null, null, null);
//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);
boolean has = q.moveToFirst();
q.close();
if (has) {
return true;
}
q = db.query(false, POINT_NAME, new String[0], null, null, null, null, null, null);
has = q.moveToFirst() && (getLastTrackPointTime() != 0L);
has = q.moveToFirst();
q.close();
if (has) {
return true;