mirror of
https://github.com/permissionlesstech/bitchat-android.git
synced 2026-11-22 08:16:23 +00:00
Progress moves out of the trailing slot and under the subtitle, so every status now shows exactly one 48dp control there instead of a spinner and a button competing for the same space. The trailing slot had three different widths across states, which made the text column re-wrap on every status change; it is now one width throughout. "Get universal" and "Retry" become icon buttons. That removes the labels they were leaning on, so both gain tooltips and real content descriptions, and prepareRowTapAction() now drives the row's enabled flag and its tap handler from one mapping. Previously the row rendered as clickable in the ready state but onPrepareRowClicked ignored it, leaving the icon as the only way to reach the universal download. Resumable downloads get a progress bar for the first time, drawn flat via amplitude 0 so a stalled download does not look like a live one. Strings: every user-facing literal now lives in strings.xml. Download failures were assembled as English sentences in the util layer, which has no Context by design, so they crossed the WorkManager boundary already formatted and could never be translated. ApkDownloadException now carries a string resource and its arguments, and the ViewModel resolves them against the device locale. util/ stays Context-free and its tests stay plain JUnit. Also drops translatable="false" from seven strings that were visible prose, and stops showing raw exception text when the APK status cannot be read. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>