Dennis Guse
44e8cd1491
Bugfix: TrackDataHub should abort processing if stopped.
2022-01-09 19:02:54 +01:00
Dennis Guse
f9d3108cb2
Extract EGM2008CorrectionManager.
...
Part of #882 .
2021-07-22 17:18:31 +02:00
Dennis Guse
401e07d7e7
Cleanup.
2021-07-09 23:17:18 +02:00
Dennis Guse
ccfcd3b306
TrackDataHub: do not send more TrackPoints after stop().
2021-05-29 19:31:28 +02:00
Dennis Guse
7929d219ac
Cleanup: TrackDataHub does not need started.
2021-05-29 19:31:28 +02:00
Dennis Guse
d6f4d3f599
Cleanup:
...
TrackDataHub handles listeners itself.
2021-05-29 19:31:28 +02:00
Dennis Guse
1d7820469c
TrackDataHub: prevent crash due to race condition.
...
Fixes #787 .
2021-05-22 12:49:51 +02:00
Dennis Guse
ae001c73dd
Simplify TrackDataHub interface.
2021-05-19 18:36:41 +02:00
Dennis Guse
56ff7827df
TrackRecordingService uses LiveData to transfer data.
...
Replaces pull from UI layer.
Fixes #173 .
2021-05-19 18:36:41 +02:00
Dennis Guse
18dd1de1f9
TrackDataHub: prevent race condition.
2021-05-08 19:31:16 +02:00
Dennis Guse
48b6438c06
Bugfix: TrackDataHub needs to use the same TrackStatisticsUpdater for a whole track (incl. newly received TrackPoints).
...
Fixes #745 .
Introduced in https://github.com/OpenTracksApp/OpenTracks/commit/887d4700d4f8fbf10563834e7498388a3213007e
2021-05-08 14:40:32 +02:00
Dennis Guse
2843d19450
UI presents altitude in EGM2008.
2021-05-05 18:01:07 +02:00
Dennis Guse
8af0fb3250
Bugfix: TrackDataHub did not account for recordingDistanceInterval.
...
Introduced in 887d4700d4
2021-05-03 22:13:23 +02:00
Dennis Guse
6723bfb979
TrackRecordingService: provide status updates via LiveData.
...
Fixes #719
2021-05-03 22:13:23 +02:00
Dennis Guse
887d4700d4
TrackDataHub computes TrackStatistics and passes it to listeners.
...
Part of #719 .
2021-04-27 19:02:53 +02:00
Dennis Guse
391dfd30e2
TrackDataHub does not need to register for status changes of TrackRecordingService.
...
This is handled by TrackRecordingActivity alone.
Part of #719 .
2021-04-27 19:02:53 +02:00
Dennis Guse
1e518a4c35
Use a non-static Binder for TrackRecordingService.
...
Fixes #98 .
2021-04-09 18:34:23 +02:00
Román Martínez
e09b04308c
Track recording service handles the status of recording: track's id, pause and GPS status.
...
Created an interface for all components that want to know about recording status through the service.
All interface's methods are optional so every component can implement what they need.
Fixes #388 .
2021-04-04 13:15:42 +02:00
Dennis Guse
15fbd90ca4
Performance: Keep reference to sharedPreferences.
...
So far, we opened the SharedPreferences very often, which is very slow; also happened in the UI thread a lot.
Fixes #642 .
2021-03-15 12:01:32 +01:00
Dennis Guse
3dc8a724d8
Bug: StatisticsRecordingFragment: speed and location where sometimes 0.
...
Fixes #628 .
2021-03-07 22:28:53 +01:00
Dennis Guse
fce76230e1
TrackDataListener now passes most recent TrackPoint to onNewTrackPointsDone().
2021-03-04 19:18:31 +01:00
Román Martínez
2f3d9a29f3
Fixed a bug: TrackDataHub will send to listeners all TrackPoints every time a change on trackpoints table was observed. Fixes #582 .
2021-01-30 23:15:54 +01:00
Dennis Guse
022d8146fe
TrackDataHub always sends via handler.
2021-01-24 22:21:37 +01:00
Dennis Guse
fcc17413e3
Segments: use TrackPoint.type.
...
So, far specific latitude for segment start/end (i.e., PAUSE/RESUME) was used.
#316 .
2021-01-24 22:21:36 +01:00
Dennis Guse
e9551bea36
Introduced TrackPoint.Id.
2021-01-10 20:25:59 +01:00
Dennis Guse
a689b6eb2c
Cleanup: removed descending iterator for TrackPoints.
2021-01-10 20:25:59 +01:00
Román
679c1d7e3e
Intervals: TrackDataHub instead of ContentProvider. Fixes #453 .
2020-10-11 12:12:44 +02:00
Dennis Guse
9d6c9676ab
Refactoring to marker: content-package and fragments.
...
#389
2020-09-05 10:37:41 +02:00
Dennis Guse
74e09e1fa9
Refactoring to marker: data class and ContentProviderUtils.
...
#389
2020-09-05 10:20:16 +02:00
Dennis Guse
0ab14e0f3d
Implement Track.Id and Waypoint.Id (with tests).
...
Fixes #276 .
2020-08-22 23:18:48 +02:00
Dennis Guse
bcbaf4985a
Implement Track.Id and Waypoint.Id (without tests).
...
Fixes #276 .
2020-08-22 23:18:48 +02:00
Dennis Guse
a3ba1e1490
Cleanup: use lambda instead of runnable.
2020-06-09 23:01:09 +02:00
Dennis Guse
fbc902e830
Cleanup using AndroidStudio code analyzer.
...
Moved to iterator for loops for ChartView and ChartFragment.
2020-04-05 21:56:26 +02:00
Dennis Guse
38a15a96b3
Cleanup.
2020-04-05 21:56:26 +02:00
Dennis Guse
46f8753746
Removed TrackDataType and simplified TrackDataManager.
2020-04-05 21:56:26 +02:00
Dennis Guse
70bc8f33b1
Do not expose TrackDataType to fragments.
2020-04-05 21:56:26 +02:00
Dennis Guse
6cd27ab096
Merged DataSourceManager into TrackDataHub.
2020-04-05 21:56:26 +02:00
Dennis Guse
5581b404f7
DataSourceManager now always registers for all changes.
2020-04-05 21:56:26 +02:00
Dennis Guse
2ef74eb908
Automated code cleanup using AndroidStudio.
2020-04-05 21:56:26 +02:00
Dennis Guse
dfc785f2fd
Simplified internal data processing (class structure).
2020-04-05 21:56:26 +02:00
Dennis Guse
a98c16de28
Removed TrackPointFactory.
...
New TrackPoints are now always created and old ones not reused.
2020-03-30 19:52:06 +02:00
Dennis Guse
194379295d
TrackPoint has Location as delegate instead of inheritance.
2020-03-30 19:52:06 +02:00
Dennis Guse
901cffee97
Use TrackPoint instead of Location (and omit casting).
2020-03-30 19:52:06 +02:00
Dennis Guse
b4d5eb0eec
Refactoring: SharedPreferences are not provided via DataSource anymore.
2020-01-11 19:31:58 +01:00
Dennis Guse
09fe35f1ca
Cleanup.
2020-01-11 19:31:58 +01:00
Dennis Guse
27e50b2dd9
Moved ContentProvider into separate package.
2020-01-11 19:31:58 +01:00
Dennis Guse
971460848b
Extracted LocationIterator from ContentProviderUtils.
...
Also refactored LocationFactory to TrackPointFactory.
2020-01-11 19:31:58 +01:00
Dennis Guse
12023d51ae
Move data classes into separate package.
2019-12-22 18:59:23 +01:00
Dennis Guse
ca330b2d80
Cleanup.
2019-12-15 21:28:03 +01:00
Dennis Guse
20f1524701
Cleanup.
2019-12-15 17:09:44 +01:00