aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/dictionarypack/LocaleUtils.java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2014-11-07 06:03:35 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-11-07 06:03:35 +0000
commit8c6c5a1ffc55679a06b85602f9c16d5d5fad469c (patch)
tree822fe4c401af1c9691f444f31199a19517f7f481 /java/src/com/android/inputmethod/dictionarypack/LocaleUtils.java
parentc1fefd20180c7118073e7b7841963b0ef565b366 (diff)
parent51d0b3351b2530173cdf73d1a9b364c916583999 (diff)
downloadlatinime-8c6c5a1ffc55679a06b85602f9c16d5d5fad469c.tar.gz
latinime-8c6c5a1ffc55679a06b85602f9c16d5d5fad469c.tar.xz
latinime-8c6c5a1ffc55679a06b85602f9c16d5d5fad469c.zip
am 51d0b335: Merge "Remove a useless method."
* commit '51d0b3351b2530173cdf73d1a9b364c916583999': Remove a useless method.
Diffstat (limited to 'java/src/com/android/inputmethod/dictionarypack/LocaleUtils.java')
-rw-r--r--java/src/com/android/inputmethod/dictionarypack/LocaleUtils.java17
1 files changed, 0 insertions, 17 deletions
diff --git a/java/src/com/android/inputmethod/dictionarypack/LocaleUtils.java b/java/src/com/android/inputmethod/dictionarypack/LocaleUtils.java
index 4f0805c5c..84b88768a 100644
--- a/java/src/com/android/inputmethod/dictionarypack/LocaleUtils.java
+++ b/java/src/com/android/inputmethod/dictionarypack/LocaleUtils.java
@@ -16,8 +16,6 @@
package com.android.inputmethod.dictionarypack;
-import android.content.res.Configuration;
-import android.content.res.Resources;
import android.text.TextUtils;
import java.util.HashMap;
@@ -160,21 +158,6 @@ public final class LocaleUtils {
return LOCALE_MATCH <= level;
}
- /**
- * Sets the system locale for this process.
- *
- * @param res the resources to use. Pass current resources.
- * @param newLocale the locale to change to.
- * @return the old locale.
- */
- public static Locale setSystemLocale(final Resources res, final Locale newLocale) {
- final Configuration conf = res.getConfiguration();
- final Locale saveLocale = conf.locale;
- conf.locale = newLocale;
- res.updateConfiguration(conf, res.getDisplayMetrics());
- return saveLocale;
- }
-
private static final HashMap<String, Locale> sLocaleCache = new HashMap<>();
/**