Stop spamming the log
diff --git a/src/com/android/settings/LocalePicker.java b/src/com/android/settings/LocalePicker.java
index d31e82c..6c73d0a 100644
--- a/src/com/android/settings/LocalePicker.java
+++ b/src/com/android/settings/LocalePicker.java
@@ -37,6 +37,7 @@
public class LocalePicker extends ListActivity {
private static final String TAG = "LocalePicker";
+ private static final boolean DEBUG = false;
Loc[] mLocales;
String[] mSpecialLocaleCodes;
@@ -90,8 +91,9 @@
Locale l = new Locale(language, country);
if (finalSize == 0) {
- Log.v(TAG, "adding initial "+
- toTitleCase(l.getDisplayLanguage(l)));
+ if (DEBUG) {
+ Log.v(TAG, "adding initial "+ toTitleCase(l.getDisplayLanguage(l)));
+ }
preprocess[finalSize++] =
new Loc(toTitleCase(l.getDisplayLanguage(l)), l);
} else {
@@ -101,13 +103,16 @@
// diff lang -> insert ours with lang-only name
if (preprocess[finalSize-1].locale.getLanguage().equals(
language)) {
- Log.v(TAG, "backing up and fixing "+
- preprocess[finalSize-1].label+" to "+
- getDisplayName(preprocess[finalSize-1].locale));
+ if (DEBUG) {
+ Log.v(TAG, "backing up and fixing "+
+ preprocess[finalSize-1].label+" to "+
+ getDisplayName(preprocess[finalSize-1].locale));
+ }
preprocess[finalSize-1].label = toTitleCase(
getDisplayName(preprocess[finalSize-1].locale));
- Log.v(TAG, " and adding "+
- toTitleCase(getDisplayName(l)));
+ if (DEBUG) {
+ Log.v(TAG, " and adding "+ toTitleCase(getDisplayName(l)));
+ }
preprocess[finalSize++] =
new Loc(toTitleCase(getDisplayName(l)), l);
} else {
@@ -117,7 +122,9 @@
} else {
displayName = toTitleCase(l.getDisplayLanguage(l));
}
- Log.v(TAG, "adding "+displayName);
+ if (DEBUG) {
+ Log.v(TAG, "adding "+displayName);
+ }
preprocess[finalSize++] = new Loc(displayName, l);
}
}