Commit Graph

2783 Commits

Author SHA1 Message Date
Marcatili, Manuel 81081b0ee5 reduce code duplication and creation of more test utils methods 2026-04-26 09:33:03 +02:00
Marcatili, Manuel def4f3a1b9 Cleanup unused utils 2026-04-26 09:33:03 +02:00
Marcatili, Manuel b679f00cc5 Improve clicking behaviour 2026-04-26 09:33:03 +02:00
Marcatili, Manuel 40494557d4 Implement dynamic waits, setup methods, isolate gps tests 2026-04-26 09:33:03 +02:00
Kilian Lackhove ee105a1610 Fix file import/export on debug builds
Debug builds added .debug to the actual applicationId, but the settings XML
used a flavor-level applicationId resource without that suffix, causing an
"Unable to find explicit activity class" exception. Solved by generating the
applicationId resource from each resolved variant and keeping debug and
nightly branding limited to the launcher label. Also added an Android test that
verifies the settings targets resolve on-device.
2026-04-19 12:46:29 +02:00
Peter Storch 3bec73e074 fix #2317 dashboard API updates 2026-04-19 10:02:23 +02:00
Dennis Guse 1155a56e49 Merge branch 'stickflowerfightclub-main' 2026-04-13 22:25:37 +02:00
stickflowerfightclub 9b7e858d1d Sensors: Fix excessive altitude gain by enforcing SAMPLING_PERIOD on internal barometer.
On some modern devices like Pixel 8 Pro, the internal pressure sensor ignores the requested sampling period in registerListener and sends data at high frequency (~50Hz). This floods the AltitudeChangeHandler with noise, causing absurdly high altitude gain (e.g., 38km for a flat run).
This commit adds a manual throttle in BarometerInternal to strictly respect the SAMPLING_PERIOD (5s), allowing the exponential smoothing to work as intended.
2026-04-13 20:00:30 +02:00
stickflowerfightclub 3f6a4975fa Fix: Allow selection of internal sensors when Bluetooth is disabled 2026-04-12 10:27:19 +02:00
Kilian Lackhove b5408eabcd Pre-populate BLE devices list with already-bonded devices 2026-04-11 21:46:20 +02:00
North-DaCoder 4e737616cb Translated using Weblate (German)
Currently translated at 99.8% (544 of 545 strings)

Translation: OpenTracks/opentracks.src-main-res-values-strings-xml--main
Translate-URL: https://translate.codeberg.org/projects/opentracks/opentracks-src-main-res-values-strings-xml-main/de/
2026-03-28 05:57:25 +00:00
omeritzics cefb6b3abf Translated using Weblate (Hebrew)
Currently translated at 46.9% (256 of 545 strings)

Translation: OpenTracks/opentracks.src-main-res-values-strings-xml--main
Translate-URL: https://translate.codeberg.org/projects/opentracks/opentracks-src-main-res-values-strings-xml-main/he/
2026-03-14 12:47:58 +01:00
mikini 3ee6d43e3f Translated using Weblate (Danish)
Currently translated at 97.7% (533 of 545 strings)

Translation: OpenTracks/opentracks.src-main-res-values-strings-xml--main
Translate-URL: https://translate.codeberg.org/projects/opentracks/opentracks-src-main-res-values-strings-xml-main/da/
2026-03-14 12:47:58 +01:00
ntd f9a4fcfa0d Translated using Weblate (Italian)
Currently translated at 100.0% (545 of 545 strings)

Translation: OpenTracks/opentracks.src-main-res-values-strings-xml--main
Translate-URL: https://translate.codeberg.org/projects/opentracks/opentracks-src-main-res-values-strings-xml-main/it/
2026-03-14 12:47:58 +01:00
Dennis Guse 4e400c60f6 Bugfix: GPS via Bluetooth is not yet support and should therefore not be configurable.
Fixes #2294.
2026-03-14 12:16:20 +01:00
Dennis Guse ca6f973360 Cleanup. 2026-03-14 11:56:33 +01:00
Dennis Guse f45dad167b Cleanup: ExportImportTest actually use implementation. 2026-02-27 22:08:10 +01:00
Dennis Guse 88c75d31a8 Bugfix: altitude type (EGM2008) should be shown in UI.
Fixes #2276.
2026-02-26 21:26:14 +01:00
Dennis Guse d49e7749f3 Cleanup: removed unnecessary interface from ContentProviderUtils. 2026-02-26 20:35:55 +01:00
Dennis Guse 8d3e953220 Cleanup: move URL to CustomContentProvider. 2026-02-26 20:33:45 +01:00
qwjyh 1d0e8f59b7 Translated using Weblate (Japanese)
Currently translated at 48.8% (266 of 545 strings)

Translation: OpenTracks/opentracks.src-main-res-values-strings-xml--main
Translate-URL: https://translate.codeberg.org/projects/opentracks/opentracks-src-main-res-values-strings-xml-main/ja/
2026-02-25 06:29:29 +00:00
Dennis Guse be7987f88a Bugfix: crash when exporting zero tracks.
Fixes #2285
2026-02-21 21:45:00 +01:00
Dennis Guse a92a1e7838 Bugfix: layout's could not be deleted.
Introduced in e9deebea6c

Fixes #2283
2026-02-19 07:54:50 +01:00
Dennis Guse 8cba53cfe4 Cleanup. 2026-02-17 06:27:11 +01:00
Dennis Guse fcedb9c444 Bugfix: crash when heartrate sensor did not send data continuously.
Introduced in 1a14fed287

Fixes #2281.
2026-02-17 06:26:43 +01:00
Dennis Guse 447d1bb7a3 Bugfix: speed and altitude were set to 0m repeatedly (UI only. Data is okay).
Fixes #2258.
2026-02-15 09:08:48 +01:00
Dennis Guse 2f6765e45f Bugfix: UI didn't show altitude in EGM2008 (but rather WGS84).
Introduced in 015352c989

Fixes #2279.
2026-02-15 09:08:48 +01:00
Dennis Guse 90bf2e6ab0 Cleanup: test is now working.
Part of #1279.
2026-02-15 09:08:48 +01:00
Dennis Guse d12423522e Cleanup. 2026-02-15 09:08:48 +01:00
Dennis Guse 24f052491b Cleanup: Move current time handling into SensorManager. 2026-02-15 09:08:48 +01:00
Dennis Guse 00fcbb070a Cleanup. 2026-02-10 22:04:47 +01:00
Dennis Guse 60e2fe57f9 Bugfix: SensorHandler may receive a connectionLost from BluetoothDriver without being connected first. 2026-02-10 18:13:13 +01:00
Dennis Guse 14cebf3fec Aggregator: there are no default values anymore. 2026-02-10 11:13:57 +01:00
Dennis Guse b651a8ca6a GPS is now optional: data source (internal, none) be selected in settings.
Migrated to GPSHandler.

Fixes #1279.
2026-02-10 10:07:41 +01:00
Dennis Guse d75472ef11 BluetoothLeSensorPreference was not adhering to configured default value. 2026-02-09 18:15:37 +01:00
Dennis Guse 0b849c3d55 CyclingDistanceSpeedHandler: uses wheel size (again).
Skipped while to SensorHandler: a5dcbec3961957dfc651cf4ffd62ec075324c0ba
2026-02-09 18:15:37 +01:00
Dennis Guse 1c767c41a7 DriverObserver: renamed methods and all drivers properly use onConnected, onConnectionLost and onDisconnected. 2026-02-09 18:15:37 +01:00
Dennis Guse dfa80d61d7 Restored functionality: sensor name/address is shown AFTER connecting. 2026-02-09 18:15:37 +01:00
Dennis Guse fa558c9ab7 Cleanup: SensorManager avoids instanceof for testing. 2026-02-09 18:15:37 +01:00
Dennis Guse a1a363698f SensorHandler now interacts with Aggregator. 2026-02-09 18:15:37 +01:00
Dennis Guse b79acfb942 Cleanup: SensorManager provides context and handler. 2026-02-09 18:15:37 +01:00
Dennis Guse 24ea718ff2 Cleanup: renamed GainManager to AltitudeChangeHandler. 2026-02-09 18:15:37 +01:00
Dennis Guse 6d187fa66d Cleanup: removed DriverObserver0 and moved sensor drivers to separate package. 2026-02-09 18:15:37 +01:00
Dennis Guse ea27db13fa Created RunningSpeedCadenceDistanceHandler. 2026-02-09 18:15:37 +01:00
Dennis Guse 29d2e7c78c Created CyclingPowerHandler. 2026-02-09 18:15:37 +01:00
Dennis Guse 4b7badbecc Created CyclingDistanceSpeedHandler. 2026-02-09 18:15:37 +01:00
Dennis Guse 0dcb8010e2 Created CyclingCadenceHandler. 2026-02-09 18:15:37 +01:00
Dennis Guse 0a9d4b207c Created TemperatureHandler. 2026-02-09 18:15:37 +01:00
Dennis Guse c6cb388ce4 Created HeartRateHandler. 2026-02-09 18:15:37 +01:00
Dennis Guse e6e009ba14 GainManager should only re-connect if sensor should be changed. 2026-02-09 18:15:37 +01:00