mirror of
https://github.com/permissionlesstech/bitchat-android.git
synced 2026-11-22 08:16:23 +00:00
Codex flagged this on the string-extraction change and it is right. WorkManager keeps failed records in its own database across app updates, and AAPT2 reassigns R.string ids on every build. A failure written by one build and read by the next would resolve its persisted int against a different resource table: wrong string, or NotFoundException, or IllegalFormatException when the placeholder arity no longer matches. The existing zero-check only caught an absent key, not a stale valid one. ApkDownloadFailureReason now names each failure and owns its string, and the boundary carries the enum name. This is the same treatment DownloadPhase.fromKey already gives the phase across the same boundary, including tolerating a name this build no longer has. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>