mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-10-06 03:38:23 +00:00
The call timer's formatDuration had a different problem from the workout one — no English words, just "%02d:%02d" — but two real ones underneath. A call past an hour rendered as "65:12": hours were folded into the minutes field rather than shown. It now switches to a three-field form at an hour and keeps the two-field form below it, so a five-minute call still reads "05:23" rather than the "00:05:23" that reusing DurationTag.formatTime would have given. The pattern moves into string resources. The separator and field order belong to the translator, and String.format without an explicit locale follows the JVM-wide default rather than the locale Compose is configured with — not the same thing in an app that ships its own language picker, where the two can disagree on digit shaping. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019egdJyBHnrATZHjs86up8f