Skip to content

Commit

Permalink
Commit database when arriving at home.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
voussoir committed Apr 13, 2023
1 parent 2899bb9 commit 2e5be6a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/src/main/java/net/voussoir/trkpt/TrackerService.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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 &&
Expand Down

0 comments on commit 2e5be6a

Please sign in to comment.