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
Peter Storch
b5acfa022d
try appCtx to persist NextCloud URI permission
...
for #1080
Also fixing a missing break in a switch statement.
2022-02-26 23:42:50 +01:00
Dennis Guse
ab5e6cbfcd
Bugfix: emojis cannot be used as filenames.
...
Fixes #1129 .
2022-02-17 18:36:06 +01:00
Arjan Schrijver
1e4e7b8c15
Allow starting the Dashboard API automatically from the StartRecording API
...
Fixes #1116 .
2022-02-16 17:06:24 +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
78519883c0
Refactored ExportServiceResultReceiver to make TrackRecordingService simpler.
2022-02-14 22:01:52 +01:00
Peter Storch
7c06327084
fix #1119 add new activities "swimming", "swimming open" and "workout"
2022-02-06 20:09:08 +01:00
Dennis Guse
a97bf6b883
Track name: use a short version of ISO8601.
...
Fixes #1093 .
2022-01-23 21:04:08 +01:00
Peter Storch
1099102e29
Change handling of Uri and DocumentFile handling for #1080
...
The Uris from Intent.getData() and DocumentFile.getUri() seems to be different. I think PreferencesUtils should only work with the original Uri as well as the permission handling logic.
IntentUtils.toDocumentFile can be used to convert it to a DocumentFile later on to actually work with.
Adds "No file manager found" message if no activity with OPEN_DOCUMENT_TREE is found. #1095
Removed deprecation of `startActivityForResult`.
2022-01-19 22:26:52 +01:00
Dennis Guse
619b82a23e
Package structure: moved functionality from FileUtils to MarkerUtils.
...
Part of #963 .
2022-01-16 21:39:16 +01:00
Dennis Guse
0eda1eed1d
Introduced value objects for heartrate, cadence, and power.
...
Fixes #896 .
2022-01-16 15:30:08 +01:00
Dennis Guse
7484ab03ce
Package structure: moved UI utils
...
Part of #963 .
2022-01-15 22:40:03 +01:00
Dennis Guse
7caf33fb66
Package structure: moved share functionality.
...
Part of #963 .
2022-01-15 22:28:47 +01:00
Dennis Guse
0645628d7e
Package structure: moved models and database.
...
Part of #963 .
2022-01-15 22:24:59 +01:00
Dennis Guse
cf993b73d7
Package structure: moved custom recording layout.
...
Part of #963 .
2022-01-15 22:24:59 +01:00
Dennis Guse
d49386259a
Package structure: moved support files.
...
Part of #963 .
2022-01-15 22:08:30 +01:00
Dennis Guse
2ca69df447
Package structure: moved Marker UI code.
...
Part of #963 .
2022-01-15 22:08:21 +01:00
Dennis Guse
43e1c99642
Refactoring package structure.
...
Part of #963 .
2022-01-14 23:34:05 +01:00
Dennis Guse
58b1396d64
Refactoring package structure.
...
Part of #963 .
2022-01-12 22:57:35 +01:00
Román Ginés
5cd6992c90
Proper handling of timezone data on UI. Fixes #301 .
...
Details:
- Date and time handled by OffsetDateTime Java class.
- Track default name with offset (for date local and ISO 8601 options).
- TrackListActivity: shows relative today's date (like Today, Yesterday, 22 Dec, 22 Dec 2021, etc).
- StatisticsRecordedFragment: always shows the original date and time. For example, if you record an activity at 20h then it always will show 20h regardless the zone are where you are.
- Added new tests.
2022-01-03 16:27:40 +01:00
Peter Storch
1631836327
Try to takkle down export dir issues
2022-01-02 21:19:43 +01:00
Dennis Guse
55d3502ff9
Cleanup using AndroidStudio analyze.
2021-12-30 12:16:31 +01:00
Dennis Guse
6d04659370
Timezone support: store timezone offset per Track.
...
When a recording is started the offset of the phone is used.
Timezone is exported to KML and GPX.
Fixes #301 .
2021-12-28 15:42:38 +01:00
Román Ginés
b4ce99440a
AggregatedStatisticsActivity: added filter option (by category, start and/or end date).
...
Fixes #1039 .
2021-12-24 11:50:32 +01:00
Peter Storch
b287967bc4
fix persistable directory permissions
2021-12-15 21:39:10 +01:00
Román Martínez
7f9057c519
Added profiles for custom layouts.
...
Users can add severals custom layouts and select one of them in recording fragment. The last selected layout is the one that will be use in the next recording.
Fixes #938 .
2021-12-07 18:07:25 +01:00
Dennis Guse
02cec48ae4
Merge pull request #1036 from OpenTracksApp/npe#1035
...
Fix NPE #1035
2021-12-04 22:23:27 +01:00
Dennis Guse
0d45efdf07
Cleanup.
2021-12-04 21:47:43 +01:00
Dennis Guse
b6d935cf34
Bugfix: prevent NPE as handler should not be executed anymore.
...
Fixes #1035 .
2021-12-04 21:47:43 +01:00
Peter Storch
bb7efaa87c
fix #1025 exportdir failed to create document
...
fix #254 illegal filename characters
2021-11-29 08:15:08 +01:00
Dennis Guse
35de5b6b26
Cleanup: BLE cycling speed/distance sensor parsing should be the other way around./
...
Was seemingly still working...
2021-11-15 18:53:14 +01:00
Dennis Guse
c3d55127fe
Bugfix: running sensor data total is distance is UINT_32.
2021-11-14 21:20:24 +01:00
Román Martínez
b1032f898a
New field for recording layout: clock.
...
With this change fields can be: short, wide, clock short or clock wide.
Fixes #1015 .
2021-11-14 16:27:37 +01:00
Dennis Guse
62401b2c5c
Cleanup.
2021-11-07 22:19:02 +01:00
Dennis Guse
900910e9f7
While recording: show cadence and speed from different sensor types correctly.
...
Fixes #970 .
2021-10-19 17:53:08 +02:00
Dennis Guse
d07ab3cc22
TrackRecordingManager: do not store altitude changes twice (previous …
...
…TrackPoint's storage was delayed).
Fixes #969 .
2021-10-16 10:23:09 +02:00
Dennis Guse
0527e4ab14
Cleanup: move AnnouncementUtils to VoiceAnnouncement.
...
Part of #963
2021-10-12 22:24:51 +02:00
Dennis Guse
b6b4c5aa39
Cleanup: move PreferencesUtils into settings package.
...
Part of #963
2021-10-12 22:24:51 +02:00
Dennis Guse
8c5c9d7947
Cleanup: extract preference functionality from StringUtils to PreferenceHelper.
...
Part of #963 .
2021-10-12 22:24:51 +02:00
Dennis Guse
eac3d4b3db
Cleanup: SharedPreference as static variable.
...
Fixes #961 .
2021-10-12 22:24:51 +02:00
Román Martínez
d69a726e0e
Renaming variables.
2021-09-18 16:17:29 +02:00
Román Martínez
e0111c2ffd
Gain and loss are integers.
2021-09-18 16:17:29 +02:00
Román Martínez
40aab9444a
Time interval setting is in minutes.
2021-09-06 22:06:48 +02:00
Dennis Guse
8f2d1722ad
Announcements: can be triggered by time and distance (instead of either).
...
Fixes #921 .
2021-08-30 17:24:51 +02:00
Dennis Guse
fa02ba9c69
Voice announcements: if TTS is not available play a sound file.
...
Fixes #862 .
2021-08-30 17:24:51 +02:00
Dennis Guse
68c447f77e
Removed AdaptiveLocationListenerPolicy.
...
Fixes #886 .
2021-08-24 18:26:09 +02:00
Román Martínez
9c4c8131f5
Recording stats layout customizable.
...
Users can select the order, visibility and importance (primary or secondary) of all stats for recording layout from the Settings.
Also, users can select the number of columns per row in the recording layout: 1, 2 or 3.
Finally, show altitude/coordinate from settings have been removed (not needed anymore).
Fixes #659 .
Fixes #302 .
Fixes #820 .
2021-08-21 19:40:31 +02:00
Dennis Guse
fc0cec6157
Share picture: if sharing a track, a share picture (PNG) is created in addition.
...
Fixes #363 .
2021-08-01 18:22:42 +02:00
Dennis Guse
242147e491
Sensor: adding Running Speed and Cadence.
...
Fixes #891 .
2021-07-31 18:44:42 +02:00
Dennis Guse
54be1b74fb
Lint: fix AGP7.0.0 found linting errors.
2021-07-29 22:54:57 +02:00