back out test
This commit is contained in:
parent
397ba72f1c
commit
5b135660d1
1 changed files with 4 additions and 4 deletions
|
@ -137,16 +137,16 @@ public class SavingTrackHelper extends SQLiteOpenHelper {
|
||||||
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);
|
||||||
//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
|
//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() && (getLastTrackPointTime() != 0L);
|
||||||
q.close();
|
q.close();
|
||||||
if (has) {
|
if (has) {
|
||||||
// return true;
|
return true;
|
||||||
}
|
}
|
||||||
q = db.query(false, POINT_NAME, new String[0], null, null, null, null, null, null);
|
q = db.query(false, POINT_NAME, new String[0], null, null, null, null, null, null);
|
||||||
has = q.moveToFirst() && (getLastTrackPointTime() > 0L);
|
has = q.moveToFirst() && (getLastTrackPointTime() =! 0L);
|
||||||
q.close();
|
q.close();
|
||||||
if (has) {
|
if (has) {
|
||||||
// return true;
|
return true;
|
||||||
}
|
}
|
||||||
} finally {
|
} finally {
|
||||||
db.close();
|
db.close();
|
||||||
|
|
Loading…
Reference in a new issue