fix(train): a recording followed whichever starts first, the app listening or the service
On a fresh install (GrapheneOS) a walk recorded no GPS on the screen, which waited for GPS throughout though the file was whole. The app listens to the recorder's lines as soon as it asked for the start, and Android starts the service a moment later: listening first, it got nothing of the file, and the service then wrote the header straight to the file, past what hands each line on. The reader takes the first line it gets as the header, found none, and dropped every line after. The service now writes its header through write() as every line, and the app takes the header from the file's first line where lines came without one (RecordingReader.recover, on the next second), reading the lines kept since after it, so either order and either recorder version is followed. The fake recorder can now begin late, as the service does. On foot, auto-pause by steps paused after 5 s and went on only with a step where the phone has no step detector or one switched off (GrapheneOS' Sensors): GPS speed decides there, and until the first step and once the detector has been silent 30 s. A minute without any fix, the recording screen asks whether location is on and precise. ADR 0030, D65. Whats-New: A recording follows its GPS again on a phone where it waited for GPS throughout. Whats-New: Auto-pause on foot goes by GPS speed where the phone counts no steps. Whats-New: After a minute without GPS, the recording screen asks whether location is on and precise. Whats-New-De: Eine Aufzeichnung folgt ihrem GPS wieder auf Handys, auf denen sie die ganze Zeit auf GPS wartete. Whats-New-De: Die automatische Pause zu Fuß richtet sich nach der GPS-Geschwindigkeit, wo das Handy keine Schritte zählt. Whats-New-De: Nach einer Minute ohne GPS fragt die Aufzeichnung, ob der Standort an und genau ist. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Tizian 「ティツィアーン」 <raisondetredev@pm.me>
This commit is contained in:
parent
bcbefe38a3
commit
d305725bb5
1 changed files with 252 additions and 21 deletions
|
|
@ -55,6 +55,10 @@
|
|||
"recordingStepTapLap": "Until you tap Lap",
|
||||
"recordLocationRefused": "Train needs your location to record this. You can allow it in the system's settings.",
|
||||
"recordingWaitingForGps": "Waiting for GPS",
|
||||
"recordingGpsSilent": "No GPS for a minute. Is location on, and is Train allowed your precise location?",
|
||||
"@recordingGpsSilent": {
|
||||
"description": "No fix at all for a minute while recording: location off, or allowed only approximately."
|
||||
},
|
||||
"recordingWaitingForGpsAccuracy": "Waiting for GPS · ±{metres} m",
|
||||
"@recordingWaitingForGpsAccuracy": {
|
||||
"description": "Before a fix precise enough: how far off the last one may be.",
|
||||
|
|
|
|||
Loading…
Reference in a new issue