Commit Graph

1585 Commits

Author SHA1 Message Date
Dennis Guse 044e84154c Bugfix: crash in settings.
Introduced in 696939112a
2025-11-05 21:31:40 +01:00
Dennis Guse 28da32f573 Fixed TrackRecordingServiceRecordingTest: disable the real GPS (finally). 2025-11-01 10:13:52 +01:00
Dennis Guse c687308d97 Move WakeLock to SensorManager (was TrackRecordingService). 2025-11-01 09:56:31 +01:00
Dennis Guse 65c8e8542e Cleanup: pass RecordingData to VoiceAnnouncementManager. 2025-11-01 09:30:47 +01:00
Dennis Guse ca4cb648e7 Predictive back: shown also for TrackRecordedActivity.
However: the shared element animation needed to be removed. ActivityOptions.makeSceneTransitionAnimation() seems to overwrite the predictive back animation.
2025-11-01 08:49:08 +01:00
Dennis Guse 53240c3d1a IntervalStatisticsUpdater exposes Statistics (instead of Interval). 2025-10-31 19:00:32 +01:00
Dennis Guse f31e146cda Cleanup: TrackPoint uses AltitudeGainLoss. 2025-10-30 22:33:00 +01:00
Dennis Guse 696939112a Cleanup: Statistics doesn't need isIdle.
isIdle is only used by SegmentStatisticsUpdater.
2025-10-30 21:52:00 +01:00
Dennis Guse 58655814b2 VoiceAnnouncementManager should close TrackPointIterator to avoid memory leaks. 2025-10-30 07:54:05 +01:00
Dennis Guse 11f1b6e72d Cleanup: TrackPointIterator is now package private. 2025-10-30 07:54:05 +01:00
Dennis Guse 8f537f33a7 Cleanup: removed Track.setTrackStatistics(SegmentStatisticsUpdater). 2025-10-30 07:54:05 +01:00
Dennis Guse 4db72230ff Refactored VoiceAnnouncementUtilsTest. 2025-10-30 07:54:05 +01:00
Dennis Guse fd92793c2a Test: IntervalStatisticsUpdaterTest doesn't store data anymore. 2025-10-30 07:54:05 +01:00
Dennis Guse 05e45b6870 TrackStatisticsUpdater now provides Statistics.
Used for non-testing code.
2025-10-30 07:54:04 +01:00
Dennis Guse 7521f906ed IntervalStatisticsUpdater now uses Statistics. 2025-10-30 07:54:04 +01:00
Dennis Guse 3222a0c497 Rename IntervalStatistics to IntervalStatisticsUpdater. 2025-10-30 07:54:04 +01:00
Dennis Guse caf3d957cd Cleanup: SegmentStatisticUpdaterTest uses Statistic. 2025-10-30 07:54:04 +01:00
Dennis Guse 005d00cfaa Cleanup: SegmentStatisticUpdaterTest. 2025-10-30 07:54:04 +01:00
Dennis Guse c227d54f26 Cleanup: SegmentStatisticUpdater and Track do not need equal(). 2025-10-30 07:54:04 +01:00
Dennis Guse bc62320b9f Track only has Statistics (instead of SegmentStatisticsUpdater). 2025-10-30 07:54:04 +01:00
Dennis Guse 0ad32f676c Create SegmentStatisticUpdater by passing Statistics (2/2). 2025-10-30 07:54:04 +01:00
Dennis Guse fff5f2d406 Create SegmentStatisticUpdater by passing Statistics (1/2). 2025-10-30 07:54:04 +01:00
Dennis Guse be653b73ee Added value object: AltitudeExtremities. 2025-10-30 07:54:04 +01:00
Dennis Guse 4580f2a7bb ContentProviderUtils use Statistics for saving. 2025-10-30 07:54:04 +01:00
Dennis Guse 5dd56892fb Cleanup: move Statistics to package models. 2025-10-30 07:54:04 +01:00
Dennis Guse e3460d94ed Statistics: used when only the data is needed (instead of passing SegmentStatisticUpdater). 2025-10-30 07:54:04 +01:00
Dennis Guse 920ad5129a Introduced Statistics as a value object. 2025-10-30 07:54:04 +01:00
Dennis Guse fba08fe8dd Cleanup: rename TrackStatistics to SegmentStatisticsUpdater. 2025-10-30 07:54:04 +01:00
Dennis Guse 361ae909e7 Bugfix: post-recording workout crashes.
Fixes #2180.

Introduced in 02a77e5ce7
2025-10-29 22:14:46 +01:00
Dennis Guse 4b59660ea1 Revert "Allow adding newly developed UI Components to existing custom layouts."
This reverts commit daa4689f44.
2025-10-29 22:14:12 +01:00
Jeff Shelley daa4689f44 Allow adding newly developed UI Components to existing custom layouts.
Fixes #2176.
2025-10-28 09:51:51 -05:00
Jeff Shelley 023a5aa221 added new UI component which shows elapsed segment time 2025-10-28 09:51:29 -05:00
Dennis Guse 9af8b0d353 Cleanup. 2025-10-24 22:26:08 +02:00
Dennis Guse 8e36ee2e7d Cleanup: TrackRecordingServiceNotificationManager uses RecordingData. 2025-10-24 10:19:43 +02:00
Dennis Guse ec2e527fd1 Cleanup. 2025-10-24 10:04:04 +02:00
Dennis Guse d968e5d0c1 Notification opens recording UI.
Features was removed as it broke occasionally and re-implemented after refactoring.

Fixes #1156.
2025-10-22 23:25:55 +02:00
Dennis Guse 26e7059af2 Cleanup. 2025-10-22 22:49:20 +02:00
Jeff Shelley 94595f2a1f Added support for average pace of the current segment 2025-10-21 19:34:19 -05:00
Dennis Guse 1fa76301e2 Cleanup: TrackShareSummaryGenerator (was DescriptionGenerator) now only produces plaintext (HTML was not used anymore). 2025-10-20 09:15:39 +02:00
Dennis Guse ce2c608cc9 Cleanup: TrackStatistics has altitudeExtremities or not. 2025-10-19 22:27:11 +02:00
Dennis Guse 1a1a8a851b Cleanup: use Stream.toList()
Replaces Stream.collect(Collection.toList() | Collectors.toCollection()).
2025-10-19 18:26:49 +02:00
Dennis Guse ddd1efeb58 Cleanup: use .isEmpty() (except for CharSequence and StringBuilder as it requires SDK33). 2025-10-19 18:26:48 +02:00
Dennis Guse 21fe59f32c Cleanup: SDK_INT is always >= Android O. 2025-10-19 17:48:23 +02:00
Dennis Guse 65f8ba16b3 Cleanup: RecyclerViewSwipeDeleteCallback.onChildDraw() should only call super once. 2025-10-18 21:28:49 +02:00
Dennis Guse 9b48993cd0 Cleanup. 2025-10-18 21:27:31 +02:00
Dennis Guse 54cec3e821 Cleanup: limit method visibility. 2025-10-18 21:10:26 +02:00
Dennis Guse daeb972c8a Cleanup: simplify stream by using List operations (desugar). 2025-10-18 21:10:26 +02:00
Dennis Guse 73872e8926 Cleanup. 2025-10-18 21:09:21 +02:00
Dennis Guse c15fa21a56 Cleanup: use viewHolder.getAbsoluteAdapterPosition(). 2025-10-18 09:40:56 +02:00
Dennis Guse e9d1080e5d Cleanup: SpeedFormatter doesn't support decimal places. 2025-10-18 09:40:54 +02:00