CMParts: Properly fix auto-power-save string format exception
We were originally encountering an issue when formatting
the auto-power-save ListPreference summary.
As detailed by Danny Baumann, when having the summary string
formatted with '%d %% foo bar', updateAutoPowerSaveSummary()
would format it to '10 % foo bar'. When setting it to the preference,
the getter would run '10 % foo bar' through String.format()
again. This would result in the issue detailed in NIGHTLIES-3540.
To properly fix this issue, have the summary string formatted
with '%s foo bar', where %s is '%d' + '%' in this case.
Change-Id: Ia90a75f40fddb6e7ab6a01603d40fda7263cba4c
diff --git a/res/values-zh-rCN/strings.xml b/res/values-zh-rCN/strings.xml
index ed5fca1..0db2b5e 100644
--- a/res/values-zh-rCN/strings.xml
+++ b/res/values-zh-rCN/strings.xml
@@ -481,7 +481,7 @@
<string name="power_save_title">极致省电</string>
<string name="power_save_summary">限制设备性能与后台活动以降低电量消耗</string>
<string name="auto_power_save_title">自动省电</string>
- <string name="auto_power_save_summary_on">电量 %d 时自动启用省电</string>
+ <string name="auto_power_save_summary_on">电量 %s 时自动启用省电</string>
<string name="auto_power_save_summary_off">不要自动启用省电</string>
<string name="app_perf_profiles_title">自动优化</string>
<string name="app_perf_profiles_summary">自动为各种应用和使用模式选择适当的性能配置</string>