feat: prioritize Bluetooth sensor data over GPS

- Restructured sensor logic to give absolute priority to Bluetooth sensors, largely ignoring GPS data for distance and speed calculations.
- Implemented downstream UI expansions, custom recording layouts, and new settings to reflect and control the new sensor-first flow.
- Added MediaNotificationListenerService and integrated media playback tracking within statistics.
- Modified VoiceAnnouncementUtils to harmonize announcements with the updated architecture.
- Added 'About This Fork' section to the README.

Note: These modifications were co-created with Antigravity AI.
This commit is contained in:
2026-09-11 14:02:57 +02:00
parent 00be0b565c
commit 7c6141f98c
50 changed files with 4338 additions and 62 deletions
+14
View File
@@ -0,0 +1,14 @@
cat << 'EOC' > src/main/java/de/dennisguse/opentracks/settings/PreferencesUtils.java.patch
--- src/main/java/de/dennisguse/opentracks/settings/PreferencesUtils.java
+++ src/main/java/de/dennisguse/opentracks/settings/PreferencesUtils.java
@@ -351,6 +351,11 @@
public static boolean shouldVoiceAnnouncementLongBreak() {
return getBoolean(R.string.settings_announcements_long_break_key, true);
}
+
+ public static long getLongBreakDuration() {
+ int minutes = getInt(R.string.settings_long_break_duration_key, 3);
+ return minutes * 60 * 1000L;
+ }
EOC
patch -p0 < src/main/java/de/dennisguse/opentracks/settings/PreferencesUtils.java.patch