summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authord34d <clark@cyngn.com>2015-08-31 23:00:02 (GMT)
committerd34d <clark@cyngn.com>2015-08-31 23:03:05 (GMT)
commit29f1d162bf6f4a158d8fce9e11308fcae34783ce (patch)
tree650ab20d2ffffc9facabc3ce9379cac227ad22c8 /src
parentc3469bf7bbad9558e1d25c12736e2edae6c39949 (diff)
downloadandroid_packages_providers_ThemesProvider-29f1d162bf6f4a158d8fce9e11308fcae34783ce.zip
android_packages_providers_ThemesProvider-29f1d162bf6f4a158d8fce9e11308fcae34783ce.tar.gz
android_packages_providers_ThemesProvider-29f1d162bf6f4a158d8fce9e11308fcae34783ce.tar.bz2
Specify locale when using String.format()
Change-Id: I5d1cbf98768965f9f4b4c704c809737193338916 REF: CYNGNOS-866
Diffstat (limited to 'src')
-rw-r--r--src/org/cyanogenmod/themes/provider/ThemesProvider.java11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/org/cyanogenmod/themes/provider/ThemesProvider.java b/src/org/cyanogenmod/themes/provider/ThemesProvider.java
index edeb802..25cecf0 100644
--- a/src/org/cyanogenmod/themes/provider/ThemesProvider.java
+++ b/src/org/cyanogenmod/themes/provider/ThemesProvider.java
@@ -54,6 +54,7 @@ import java.util.Collection;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
+import java.util.Locale;
import java.util.Map;
import static android.content.res.ThemeConfig.SYSTEM_DEFAULT;
@@ -377,7 +378,7 @@ public class ThemesProvider extends ContentProvider {
if (id >= 0) {
if (ThemesColumns.MODIFIES_STATUS_BAR.equals(component)) {
for (String previewKey : PreviewsTable.STATUS_BAR_PREVIEW_KEYS) {
- sb.append(delimeter).append(String.format(
+ sb.append(delimeter).append(String.format(Locale.US,
"(SELECT %s AS %s FROM previews WHERE %s=%d AND %s='%s')",
PreviewColumns.COL_VALUE, previewKey,
PreviewColumns.THEME_ID, id, PreviewColumns.COL_KEY,
@@ -386,7 +387,7 @@ public class ThemesProvider extends ContentProvider {
}
} else if (ThemesColumns.MODIFIES_ICONS.equals(component)) {
for (String previewKey : PreviewsTable.ICON_PREVIEW_KEYS) {
- sb.append(delimeter).append(String.format(
+ sb.append(delimeter).append(String.format(Locale.US,
"(SELECT %s AS %s FROM previews WHERE %s=%d AND %s='%s')",
PreviewColumns.COL_VALUE, previewKey,
PreviewColumns.THEME_ID, id, PreviewColumns.COL_KEY,
@@ -395,14 +396,14 @@ public class ThemesProvider extends ContentProvider {
}
} else if (ThemesColumns.MODIFIES_LAUNCHER.equals(component)) {
String previewKey = PreviewColumns.WALLPAPER_PREVIEW;
- sb.append(delimeter).append(String.format(
+ sb.append(delimeter).append(String.format(Locale.US,
"(SELECT %s AS %s FROM previews WHERE %s=%d AND %s='%s')",
PreviewColumns.COL_VALUE, previewKey, PreviewColumns.THEME_ID,
id, PreviewColumns.COL_KEY, previewKey));
delimeter = ",";
} else if (ThemesColumns.MODIFIES_NAVIGATION_BAR.equals(component)) {
for (String previewKey : PreviewsTable.NAVIGATION_BAR_PREVIEW_KEYS) {
- sb.append(delimeter).append(String.format(
+ sb.append(delimeter).append(String.format(Locale.US,
"(SELECT %s AS %s FROM previews WHERE %s=%d AND %s='%s')",
PreviewColumns.COL_VALUE, previewKey,
PreviewColumns.THEME_ID, id, PreviewColumns.COL_KEY,
@@ -411,7 +412,7 @@ public class ThemesProvider extends ContentProvider {
}
} else if (ThemesColumns.MODIFIES_OVERLAYS.equals(component)) {
String previewKey = PreviewColumns.STYLE_PREVIEW;
- sb.append(delimeter).append(String.format(
+ sb.append(delimeter).append(String.format(Locale.US,
"(SELECT %s AS %s FROM previews WHERE %s=%d AND %s='%s')",
PreviewColumns.COL_VALUE, previewKey, PreviewColumns.THEME_ID,
id, PreviewColumns.COL_KEY, previewKey));