Commit graph

706 commits

Author SHA1 Message Date
c722e7cad1 Let notification say (home) when at home. 2023-04-05 18:06:43 -07:00
540f09525d Add notice of wakelock to readme. 2023-04-05 18:05:08 -07:00
47e0c36c3a Add straighten button, straightens trkpts between two points. 2023-04-05 18:04:56 -07:00
a8e2bb26fd Add interpolate button, adds point between two points. 2023-04-05 18:04:27 -07:00
cee0f7bef4 Add draggable marker to move trkpts in history. 2023-04-04 19:06:15 -07:00
07bd7bbb0b Add optional commit parameter to database functions. 2023-04-04 18:58:25 -07:00
17e85379f8 Tap the map background to deselect trkpt. 2023-04-04 18:42:03 -07:00
8b396f3bba Fix logic error releasing wakelock. 2023-04-04 18:05:43 -07:00
9dacf8b68e Improve visual centering of app icon. 2023-04-03 19:55:39 -07:00
b463752774 Increase time until sleep and reduce watchdog pace. 2023-04-03 19:07:03 -07:00
4eb67120a5 Don't go to dead from sleep, doze produces extremely long delays. 2023-04-03 19:06:27 -07:00
9b81b7ea19 Remove unused code. 2023-04-03 19:04:25 -07:00
ccde7c9f81 Use current time in notification setwhen.
The text of the notification will still say the most recent location,
but in going from fullpower to dead I want the time of the notification
itself to be the moment of rip.
2023-04-03 19:03:54 -07:00
548dcf2c58 Add wakelock to prevent doze when not at home.
Recently I took a 90 minute drive, and trkpt missed about 15
minutes of it. It wasn't until now that I realized it probably
went into doze mode due to the low accelerometer movements.
If the device is plugged in it does not doze, but to achieve the
no-friction goal we should not be required to take it out of our
pocket and plug in all the time for fear of missing points.
2023-04-03 19:03:05 -07:00
f55d683fe7 Move some strings to strings.xml. 2023-04-03 18:58:38 -07:00
f6f5bf5809 Don't destroy the notification after service stops. 2023-04-02 20:35:43 -07:00
97c2ccb4d5 Don't treat unbind as dead. 2023-04-02 20:35:13 -07:00
328e56cb05 Don't use title case for strings on settings page. 2023-04-02 18:54:35 -07:00
1637ef16d6 Improve isolate_trkseg feature by querying its endpoints for more. 2023-04-02 18:41:16 -07:00
01a313a69c Describe exact power management state transitions in readme. 2023-04-02 17:18:33 -07:00
04d27ab984 Double the give up time during sleep.
If you're gonna die in your sleep, you may as well sleep in.
2023-04-02 16:16:59 -07:00
531ff36ed0 Add preference to show debug information on main screen. 2023-04-02 16:13:56 -07:00
eff08eb375 Also watch charging status, don't kill GPS while on power. 2023-04-02 16:12:44 -07:00
9e75502477 Don't reset from dead just by looking at the screen.
This was making it hard to debug because I couldn't actually
look at the problem without it fixing itself.
2023-04-02 16:11:23 -07:00
89035e0323 Various linting. 2023-04-02 16:07:22 -07:00
7788352286 Disable the polyline's infowindow in mapfragment. 2023-04-02 12:29:06 -07:00
3a4ae9d723 Reset arrived_at_home while resetting listeners, not sleeping. 2023-04-02 12:13:19 -07:00
1a18ac22e4 Dedent this code with a continue. 2023-04-02 12:12:32 -07:00
61169a56de Don't update notification if database is not ready. 2023-04-02 12:11:57 -07:00
f90d8f620e Gitignore app/release/output-metadata.json. 2023-04-02 10:06:50 -07:00
5928643325 Add OSM copyright to about section. 2023-04-02 10:05:50 -07:00
6a780d3e46 Add import_gpx.py. 2023-04-02 08:46:01 -07:00
d2eb6ccde4 Also show the accuracy in the selected_trkpt_info. 2023-04-02 08:45:14 -07:00
2e84ecb295 Add power management to readme. 2023-04-01 17:53:34 -07:00
cb47f9ab49 Combine unnecessary else if. 2023-04-01 17:37:16 -07:00
6ad4c2dbe5 Also watch step counter movement, notification icon by status. 2023-04-01 13:56:27 -07:00
59389accc5 Subtract pause duration from moving duration, change strings. 2023-04-01 13:11:53 -07:00
a89016383a Snap map to center instead of animating. 2023-04-01 13:08:20 -07:00
8aff8f3833 Remove the compass overlay. 2023-04-01 13:07:44 -07:00
a0e1fb8d8b Add preference "Allow sleep at homepoints and in deadzones". 2023-04-01 13:07:33 -07:00
eec0caf59d Kill GPS if it is struggling for several minutes, wait for motion.
Still testing.
2023-03-31 22:32:29 -07:00
6dda912198 Add app icon to readme. 2023-03-30 22:04:58 -07:00
67382ce90a Sleep GPS near homepoints, wait for significant motion sensor.
First attempts, will test for a few days.
2023-03-30 21:57:24 -07:00
1ef59f49f5 Add "use trkpt as start" and "use trkpt as end" buttons. 2023-03-30 18:40:11 -07:00
9209a30c14 Rearrange elements to match the order they appear. 2023-03-30 18:38:29 -07:00
7eba6e262a Add TextInputLayout to homepoint dialog, and re-add it to save dialog. 2023-03-30 18:00:57 -07:00
9b67ca8bfd When arriving at a homepoint, move it to the front of the deque. 2023-03-30 17:35:41 -07:00
55bde3b812 Use in-app prompt for track name before going to save intent.
This allows you to put a custom name on your track without having
to navigate your text cursor between the .gpx file extension.

This also puts the name inside the gpx file's metadata, so that's
a distinct advantage over just titling the filename itself.
2023-03-29 21:04:06 -07:00
32d71457dc Change GPX creator attribute to "net.voussoir.trkpt version". 2023-03-28 23:23:26 -07:00
19a97d905a Fix incorrect filter blocking onclick of point index 0. 2023-03-28 22:13:15 -07:00