Dennis Guse
f956e7fab3
Duplicate variable name.
2022-06-19 17:21:56 +02:00
William Pettersson
128b95cd83
Fix voice announcement rounding problem
...
We extracted integral parts before rounding, but String.format does
rounding which caused occasional issues. To alleviate, we need to round
before passing to String.format. All this rounding logic has now been
moved into appendDecimalUnit, and tests have been added to check that
rounding works correctly.
Fixes : #1285
2022-06-19 16:39:46 +02:00
Dennis Guse
a283464331
Add nautical miles (with feet for altitude).
...
Fixes #1280 .
2022-06-17 19:57:40 +02:00
Dennis Guse
9cf88c00b0
Voice announcements: time is moving time (settings).
2022-06-06 17:02:31 +02:00
Jonas Kalderstam
00351136f2
Voice announcements: added settings for what to announce
2022-06-06 17:02:31 +02:00
Dennis Guse
5d2414977b
TrackRecordingService: remove pause functionality.
...
Fixes #1233 .
2022-05-23 07:41:50 +02:00
Dennis Guse
815f111ca6
TrackRecordingService: use main looper explicitly.
2022-05-11 20:56:52 +02:00
Dennis Guse
40d2bf0c22
Bluetooth: use TrackRecording handler for callback.
...
Otherwise the thread is not defined and a SecurityException may be triggered when inserting data into the ContentProvider.
Sadly, below API26 this needs to be done manually.
Fixes #1165 .
2022-05-11 20:56:52 +02:00
Dennis Guse
9d64989ef1
Public API: implemented STOP properly.
...
Fixes #1103 .
2022-05-08 20:29:13 +02:00
Román Ginés
da62d26409
UI refactoring with a Bottom App Bar.
...
Only one button to play/stop.
Stop Activity to edit track just recorded, resuming or finishing.
Logo color to FF6D00.
Fixes #1078 #437 #575 #1094 .
2022-05-08 20:06:24 +02:00
Dennis Guse
a5b44175a3
Convert metricUnits boolean into an enum.
...
Fixes #1199 .
2022-04-28 22:35:38 +02:00
Dennis Guse
db5c9479df
Implement SpeedFormatter.
2022-04-28 22:35:38 +02:00
Dennis Guse
16f238f34b
Refactoring: DistanceFormatter handles metricUnits.
2022-04-28 22:35:38 +02:00
Dennis Guse
a57b5cd6ee
From notification, open TrackRecordingActivity.
...
Fixes #1205 .
2022-04-26 18:31:14 +02:00
Dennis Guse
6741ef4d9f
Bugfix: notification opens TrackListActivity instead of TrackRecordingActivity.
...
If a recording is running, we need to pass the trackId to TrackRecordingActivity as otherwise it crashes when needing it.
Fixes #1156 .
2022-04-24 16:58:36 +02:00
Dennis Guse
f2ac1edc4b
Create DistanceFormatter.
...
Fixes #1197
2022-04-23 20:12:43 +02:00
Dennis Guse
18b21a6a3e
Bugfix: prevent race condition in TrackPointCreator.
...
This race condition leads to a crash in TrackStatisticsUpdater as the time might appear to move backwards if the created TrackPoints are not stored in order. Might happen if multiple sensors (BLE or GPS) are used in simultaneously.
Every method affected by a race condition is now synchronized.
Problem was introduced in c4b8082efc
Fixes #1151 .
2022-04-23 12:48:19 +02:00
Dennis Guse
71288cd9be
Bugfix: onDestroy() first shutdown sensors.
...
Fixes #1189 .
2022-04-22 06:51:15 +02:00
Dennis Guse
dd1c5667a0
Adhere to recording distance interval for TrackPoint storage.
...
Part of #1059 .
2022-04-10 12:57:12 +02:00
Dennis Guse
7c5115fc56
UI: only update once every second.
...
Accidentally introduced in 78519883c0 .
2022-03-26 00:35:44 +01:00
Peter Storch
e61b065f2b
fix #1139 CI build
...
- fix NPEs in TrackPointCreator.fill()
- fix locale dependant tests
- wait for UI components
- extract utility functions into EspressoUtils
2022-03-13 01:28:10 +01:00
Jonas Kalderstam
9e7e8c60a6
Voice announcement: added TtsSpans to announcements
...
Fixes #876
2022-03-01 10:09:00 +01:00
Jonas Kalderstam
1075021e21
Voice announcement: added heart rate info to voice announcements
...
Also added setting to toggle announcement of heart rate
Defaults to off to preserve current behavior
2022-03-01 09:58:29 +01:00
Dennis Guse
0848897ed0
Bugfix: speed showed sometimes 0.0 in UI.
...
Fixes #1117 .
2022-02-17 18:19:17 +01:00
Román Ginés
7ca6925e7d
Recording without GPS: show a Snackbar to warn user that recording is not using GPS.
2022-02-15 17:20:44 +01:00
Dennis Guse
5c06c7548f
GPS is now optional: request GPS access in TrackRecordingActivity.
...
Fixes #1061 .
2022-02-14 22:17:10 +01:00
Dennis Guse
8001c03a74
Bugfix: do not leak TTS in voice announcements.
2022-02-14 22:01:52 +01:00
Dennis Guse
30f9b6ffdc
Cleanup in VoiceAnnouncement: rename to start() and stop().
2022-02-14 22:01:52 +01:00
Dennis Guse
a7fd6b8dfa
TrackRecordingService: call stopSelf after triggering post-workout export.
...
Might fix #1080 .
2022-02-14 22:01:52 +01:00
Dennis Guse
cc93384d1f
TrackRecordingService: create/ release EGM2008.
2022-02-14 22:01:52 +01:00
Dennis Guse
78519883c0
Refactored ExportServiceResultReceiver to make TrackRecordingService simpler.
2022-02-14 22:01:52 +01:00
Dennis Guse
29051ac978
Cleanup: move creating manual TrackPoints into TrackRecordingManager.
2022-02-14 22:01:52 +01:00
Dennis Guse
cf32c81035
Cleanup: extract RecordingData and RecordingStatus from TrackRecordingService.
2022-02-14 22:01:52 +01:00
Dennis Guse
19a958ccbb
Cleanup.
2022-01-29 19:21:54 +01:00
Dennis Guse
708245bd50
TrackRecordingServices: managers register for sharedPreference changes.
2022-01-27 22:04:45 +01:00
Dennis Guse
d8ffc1318f
Refactor: move methods to NotificationManager.
2022-01-27 22:04:45 +01:00
Dennis Guse
5998f9127d
TrackPointCreator needs to reset GPSHandler as it might have been running beforehand.
2022-01-27 22:04:45 +01:00
Dennis Guse
838f3dc622
Public API: enable other applications to start recordings.
...
Fixes #671 .
2022-01-23 20:13:00 +01:00
Dennis Guse
f64c1feb1a
Bugfix: prevent rare crash due to Actvity lifecycle events in AbstractTrackDeleteActivity.
2022-01-19 20:53:30 +01:00
Dennis Guse
e1d3b04dd0
Bugfix: MediaPlayer creation might fail for ttsFallback.
...
Seen on a Fairphone 4.
Part of #963 .
2022-01-16 21:39:16 +01:00
Dennis Guse
1df1fe699a
Cleanup: removed unused parameter.
2022-01-16 15:30:08 +01:00
Dennis Guse
864bc8fad9
Cleanup.
2022-01-15 23:16:53 +01:00
Dennis Guse
88c4e1a109
Package structure: moved sensors.
...
Part of #963 .
2022-01-15 22:24:59 +01:00
Dennis Guse
0645628d7e
Package structure: moved models and database.
...
Part of #963 .
2022-01-15 22:24:59 +01:00
Dennis Guse
5053c41bec
Package structure: moved intervals.
...
Part of #963 .
2022-01-15 22:07:53 +01:00
Dennis Guse
46cf7f9acf
TrackRecordingServiceConnection: use a callback instead of a Runnable.
2022-01-15 20:53:46 +01:00
Dennis Guse
522d8b41d8
Bugfix: use monotonic clock.
...
Fixes #800 .
2022-01-15 19:52:27 +01:00
Dennis Guse
58b1396d64
Refactoring package structure.
...
Part of #963 .
2022-01-12 22:57:35 +01:00
Dennis Guse
a9f1381dae
Refactoring package structure.
...
Part of #963 .
2022-01-12 22:42:23 +01:00
Dennis Guse
e508c53ca9
TrackRecordingManager: store GPS-based TrackPoints based upon the distance to the previously stored GPS-based TrackPoint.
2022-01-12 18:07:48 +01:00