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:
voussoir 2023-04-12 20:58:58 -07:00
parent 2899bb992d
commit 2e5be6a4e4

View file

@ -292,6 +292,7 @@ class TrackerService: Service()
{
Log.i("VOUSSOIR", "Arrived at home.")
arrived_at_home = System.currentTimeMillis()
trackbook.database.commit()
}
else if (
allow_sleep &&