Commit graph

646 commits

Author SHA1 Message Date
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
5928643325 Add OSM copyright to about section. 2023-04-02 10:05:50 -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
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
bac441ad4b Add LeakCanary. 2023-03-28 18:16:53 -07:00
ccaec4bf10 Display notification time in local timezone. 2023-03-28 17:28:31 -07:00
36f15bf057 Add constant DISPLACEMENT_LOCATION_COUNT. 2023-03-26 21:08:58 -07:00
a86d1f4a38 Store location provider in trkpt rows. 2023-03-26 21:08:00 -07:00
990f4298ba Remove version number onclick copy to clipboard. 2023-03-26 19:40:15 -07:00
fd3d18f4e1 Reset version number to 1.0.0 for this fork. 2023-03-26 19:34:27 -07:00
c22184d9cb New app icon for this fork. 2023-03-26 19:33:43 -07:00
f62cebdfaf Add pause_duration to statistics. 2023-03-26 19:31:30 -07:00
f7101ff83a Fix self-imposed bug regarding start_time_previous, end_time_previous. 2023-03-26 19:30:51 -07:00
d555590d1f Don't calculate velocity for tracks <= 1 second. 2023-03-26 19:30:18 -07:00
670f219ed7 Put BuildConfig.VERSION_NAME back in the prefs screen. 2023-03-26 13:30:24 -07:00
d7caee4131 Autogenerate Track name from start and end dates. 2023-03-26 12:37:57 -07:00
2e884aef02 Rename Map tab to Record. 2023-03-26 12:13:00 -07:00
53a1dab2fb Omit exact duplicates before considering recent displacement. 2023-03-26 12:12:42 -07:00
fd206249f5 Set datetime spinners during isolate trkseg and spatial query. 2023-03-26 12:00:45 -07:00
71d1bcc675 Add source code and fork notice in settings. 2023-03-26 19:37:04 -07:00
a566e80ebf Initialize track_points_overlay disabled when zoomed out. 2023-03-26 11:32:52 -07:00
85d32aff22 Fix select / delete trkpt timestamp query <=, >=. 2023-03-26 11:32:15 -07:00
bb0e544553 Add isolate_trkseg_button. 2023-03-26 11:26:53 -07:00
5008cea165 Remove the blue dot from the start/end markers. Just the pins. 2023-03-26 11:25:32 -07:00
7ef935ca2b Add function set_datetime for updating the datepicker, timepicker. 2023-03-26 11:24:47 -07:00
ebfbf05006 Add "when was I here?" button. 2023-03-24 22:37:16 -07:00
d8d9bc23ff checkpoint 2023-03-24 17:15:33 -07:00
c434d3b840 checkpoint 2023-03-23 22:48:25 -07:00
e96bfac4a9 checkpoint 2023-03-22 17:23:20 -07:00
06ca0fd2b3 checkpoint 2023-03-21 21:53:29 -07:00
e26bd2bf9a checkpoint 2023-03-19 11:19:24 -07:00
d943b206fa checkpoint 2023-03-16 20:56:06 -07:00
4a47d267a5 checkpoint 2023-03-15 22:04:08 -07:00
bbd23d8fb1 checkpoint 2023-03-15 21:26:42 -07:00
2de4e0bae5 checkpoint 2023-03-15 21:12:37 -07:00
3532704102 checkpoint 2023-03-15 18:08:08 -07:00
0133524fa2 checkpoint 2023-03-14 22:14:25 -07:00
b0edefcb4b checkpoint 2023-03-14 18:30:25 -07:00
62189f9e61 checkpoint 2023-03-14 17:26:02 -07:00
8f5852d157 checkpoint 2023-03-14 16:45:15 -07:00
71d94c8fcc checkpoint 2023-03-13 18:41:25 -07:00
c3d2223524 checkpoint 2023-03-13 16:58:39 -07:00
aca4cf20c0 checkpoint 2023-03-12 22:09:58 -07:00
8cbfa729f0 checkpoint 2023-03-12 17:49:03 -07:00
2c33cc88f7 checkpoint 2023-03-11 21:07:16 -08:00
63d2b073d2 checkpoint 2023-03-11 20:20:35 -08:00
9830ebf1e7 checkpoint 2023-03-11 16:50:20 -08:00
62675e1b97 checkpoint 2023-03-11 16:05:37 -08:00
172ca703a9 checkpoint 2023-03-11 12:30:24 -08:00
ffd5fb6af3 checkpoint 2023-03-10 19:46:28 -08:00
1f695958e7 checkpoint 2023-03-10 19:35:27 -08:00
5dad3d6209 checkpoint 2023-03-09 22:25:21 -08:00
04fa76249b checkpoint 2023-03-09 21:34:02 -08:00
df77b089ac checkpoint 2023-03-09 20:24:06 -08:00
2568af3bb1 checkpoint 2023-03-06 20:52:41 -08:00
7956f44ce4 Was experimenting with automatic GPX export. Hardcoded path.
These changes are several months old, I am just now committing them
because I want to move on to a different experiment.
2023-03-04 21:29:18 -08:00
edcb149ac7
Try a new location button position. 2022-04-08 18:14:01 -07:00
629973e323
Item range changed probably not actually necessary. 2022-04-08 18:14:01 -07:00
bc640051cf
Alphabetize functions in trackerservice. 2022-04-08 18:14:01 -07:00
8a72bb2b2e
Remove coroutine when deleting track, just do it synchronously.
My coroutine solution worked for bringing the onboarding back, but
it broke the cancel button since it touched a view out of the owning
thread. I probably could fix that by adding a coroutine for cancel
too, but the delete operation should be so fast that synchronous
might not even be a problem.
2022-04-08 18:14:00 -07:00
75a0a3ae40
Some linting. 2022-04-08 18:13:59 -07:00
e3bc911de4
Refactor out TracklistElement, make Track more object-oriented.
I'm sure the reason for TracklistElement was to save memory by not
having the waypoints loaded, but the separation of Track /
TracklistElement creates lots of back-and-forth conversions and
mental overhead. I want to give this a try and see if it actually
causes any problems.

Moved a lot of helper functions into the classes they operate on.
2022-04-08 18:13:59 -07:00
45de00b9c5
setOnItemReselectedListener attempt and failure. 2022-04-08 18:13:58 -07:00
e73023c892
Request focus when renaming track. 2022-04-08 18:13:58 -07:00
222422b884
Use coroutine to show onboarding again after deleting final track. 2022-04-08 18:13:57 -07:00
d6a14956e1
Let the json file use the timestamp name since seconds are fixed. 2022-04-08 18:13:57 -07:00
b01a900fd3
Fix live statistics not disappearing when track cleared. 2022-04-08 18:13:56 -07:00
ac5c3c2dd5
Remove prefs load/save function comments. 2022-04-08 18:13:55 -07:00
3741d0baf5
Replace high/low accuracy with omit rests option.
I have been feeling that the high/low accuracy switch is a bit
misleading because while it can help us choose waypoints that
are sufficiently far apart from each other, the accuracy of any
individual waypoint isn't inherently better than normal. However,
the option to omit or keep rests allows the user to keep the raw
data or postprocess it in their own way; or accept the default
different-enough detection.
2022-04-08 18:13:55 -07:00
981e8806b1
Add <sat> to each trkpt. 2022-04-08 18:13:54 -07:00
74cfbaedea
Simplify createGpxString with appendLine and string interpolation. 2022-04-08 18:13:53 -07:00
c3922240e0
Pass the location's satellites through the constructor. 2022-04-08 18:13:53 -07:00
0c510d4a11
wip 2022-04-08 18:13:52 -07:00
77cfcf202f
Add notifyItemRangeChanged to help recyclerview. 2022-04-08 18:13:51 -07:00
b7f641515a
Rename DIALOG_EMPTY_RECORDING -> DIALOG_RESUME_EMPTY_RECORDING. 2022-04-08 18:13:50 -07:00
7cb9904ab9
Rename STATE_TRACKING_NOT -> STATE_TRACKING_NOT_STARTED. 2022-04-08 18:13:50 -07:00
4d17f64766
New strings for new main buttons. 2022-04-08 18:13:49 -07:00
10b27b266f
Android recommends not using the word "button" in button name strings. 2022-04-08 18:13:47 -07:00