forked from upstream-mirrors/OpenTracks
7c6141f98c
- 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.
15 lines
678 B
Bash
15 lines
678 B
Bash
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
|