From fec512175bfcde6ad7822be0c5bf24f979783fb3 Mon Sep 17 00:00:00 2001 From: darken Date: Tue, 25 Aug 2026 21:42:06 +0200 Subject: [PATCH] fix: Prevent crash in Amharic battery time formatting MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The Amharic translation of battery_time_remaining_format_hm dropped the conversion character from its second placeholder: "%1$dሰ %2$ደ" instead of "%1$dሰ %2$dደ". Java's formatter reads "%2$" followed by "ደ" as an unknown conversion and throws UnknownFormatConversionException. formatBatteryDurationShort() takes that branch whenever an estimate has both hours and minutes, so any duration between 1h1m and 23h59m threw. It is reached from the dashboard pod cards, the home screen widget, and the foreground service notification, which makes it a crash on the common path rather than an edge case. Found because the Play Store rejected the Amharic screenshot upload: the widget configuration preview had rendered as a 1x1 image, the layoutlib render having aborted on the same exception. Corrected at source in Crowdin, and in CAPod's translation memory, which still mapped the English source to the broken string at 100% match and would have re-injected it on the next pre-translate run. --- app/src/main/res/values-am/strings.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/res/values-am/strings.xml b/app/src/main/res/values-am/strings.xml index b9693711..1d3fc65f 100644 --- a/app/src/main/res/values-am/strings.xml +++ b/app/src/main/res/values-am/strings.xml @@ -283,7 +283,7 @@ ለመጨረሻ ጊዜ የታየው: %s ለመጀመሪያ ጊዜ የታየው: %s የመጨረሻ ታወቀ · %s - %1$dሰ %2$ደ + %1$dሰ %2$dደ %1$dሰ %1$dደ ማሳወቂያዎችን አሳይ