From 2ebe5893a20d62c28041b7295ac9f3a769b492a6 Mon Sep 17 00:00:00 2001 From: Al-Mothafar Al-Hasan Date: Tue, 14 Jul 2026 00:59:14 +0300 Subject: [PATCH] Add formatted="false" to notification_full_level_content_big (#146) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The string is shown via getString() with no format args, so its literal "%" signs (100%, 20%, 80%) are meant to print verbatim. Lint read them as malformed format specifiers, failing lintDebug on master with 4 StringFormatInvalid errors — a regression from #114. Its two sibling strings from the same #114 PR (how_battery_health_works, battery_reading_unreliable_dialog_message) already carry formatted="false" for the identical "20% and 80%" wording; this one just missed it. Add it in both values/ and values-ar/. CI does not run lintDebug (only tests + assembleDebug + assembleRelease), which is why it slipped through. Closes #146 Co-authored-by: Claude Opus 4.8 --- app/src/main/res/values-ar/strings.xml | 2 +- app/src/main/res/values/strings.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/res/values-ar/strings.xml b/app/src/main/res/values-ar/strings.xml index 8ff8755..c94e343 100644 --- a/app/src/main/res/values-ar/strings.xml +++ b/app/src/main/res/values-ar/strings.xml @@ -104,7 +104,7 @@ اكتمل شحن البطارية — يمكنك فصل الشاحن الآن اكتمل شحن البطارية يمكنك فصل الشاحن الآن - اكتمل الشحن — يمكنك فصل الشاحن الآن. تتقادم البطاريات أسرع ما يكون عند إبقائها على 100%، لذا فصل الشاحن قريباً (والبقاء تقريباً بين 20% و80% في الاستخدام اليومي) يساعد بطاريتك على أن تدوم أطول. + اكتمل الشحن — يمكنك فصل الشاحن الآن. تتقادم البطاريات أسرع ما يكون عند إبقائها على 100%، لذا فصل الشاحن قريباً (والبقاء تقريباً بين 20% و80% في الاستخدام اليومي) يساعد بطاريتك على أن تدوم أطول. بدأ الشحن diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 1a8c4d5..a80ae81 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -109,7 +109,7 @@ Battery fully charged — you can unplug now Battery fully charged You can unplug your charger now - Charge complete — you can unplug now. Batteries age fastest when kept at 100%, so unplugging soon (and staying roughly between 20% and 80% day to day) helps the battery last longer. + Charge complete — you can unplug now. Batteries age fastest when kept at 100%, so unplugging soon (and staying roughly between 20% and 80% day to day) helps the battery last longer. Charging started