Skip to content

Commit 12ca552

Browse files
committed
Fix: Keep the space between charger types in a condition summary
A charger condition naming more than one plug type read "While charging via Wireless,Dock". The separator resource was authored as ", " but Android strips leading and trailing whitespace from an unquoted string resource, so the value reaching joinLabels() was a bare comma. Quoting the resource preserves the space.
1 parent cff8729 commit 12ca552

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

app/src/main/res/values/strings.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -729,7 +729,8 @@
729729
<string name="rules_condition_bluetooth_unnamed">While a paired device is connected</string>
730730
<string name="rules_condition_charger">While charging via %1$s</string>
731731
<string name="rules_condition_charger_none">No charger type selected</string>
732-
<string name="rules_condition_separator">, </string>
732+
<!-- Quoted: Android strips trailing whitespace from an unquoted resource, which would join charger types as "Wireless,Dock". -->
733+
<string name="rules_condition_separator">", "</string>
733734
<string name="rules_condition_unsupported">This device can\'t act on charger conditions.</string>
734735
<string name="rules_policy_unavailable">This charge mode isn\'t available on this device.</string>
735736
<string name="rules_failure_warning">The last change couldn\'t be applied. Amply keeps retrying.</string>

0 commit comments

Comments
 (0)