Commit database when arriving at home.
Since trkpt will stop capturing points, it will not reach the later part of the handler that commits when a new point is 30 seconds after the previous commit.
This commit is contained in:
parent
2899bb992d
commit
2e5be6a4e4
1 changed files with 1 additions and 0 deletions
|
@ -292,6 +292,7 @@ class TrackerService: Service()
|
||||||
{
|
{
|
||||||
Log.i("VOUSSOIR", "Arrived at home.")
|
Log.i("VOUSSOIR", "Arrived at home.")
|
||||||
arrived_at_home = System.currentTimeMillis()
|
arrived_at_home = System.currentTimeMillis()
|
||||||
|
trackbook.database.commit()
|
||||||
}
|
}
|
||||||
else if (
|
else if (
|
||||||
allow_sleep &&
|
allow_sleep &&
|
||||||
|
|
Loading…
Reference in a new issue