aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2013-01-31 09:01:19 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2013-01-31 09:01:19 -0800
commit0d42b8cb8a21afef40933682e6bae7bf6e3eef42 (patch)
tree0ccf69b77a20e7280cb4f264cf7b8bc57e8f103e /java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java
parentca2b14c5e334d8b0c67fc8c88b2296f779e74595 (diff)
parent5ea4365f077f59341430e00ed34a5d74b7877931 (diff)
downloadlatinime-0d42b8cb8a21afef40933682e6bae7bf6e3eef42.tar.gz
latinime-0d42b8cb8a21afef40933682e6bae7bf6e3eef42.tar.xz
latinime-0d42b8cb8a21afef40933682e6bae7bf6e3eef42.zip
am 5ea4365f: Merge "Create methods in LatinIME to make the current dict lists"
# Via Android (Google) Code Review (1) and Jean Chalard (1) * commit '5ea4365f077f59341430e00ed34a5d74b7877931': Create methods in LatinIME to make the current dict lists
Diffstat (limited to 'java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java')
-rw-r--r--java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java b/java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java
index 5da0f1be8..1cdc3b564 100644
--- a/java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java
+++ b/java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java
@@ -76,7 +76,7 @@ final class BinaryDictionaryGetter {
/**
* Returns a file address from a resource, or null if it cannot be opened.
*/
- private static AssetFileAddress loadFallbackResource(final Context context,
+ public static AssetFileAddress loadFallbackResource(final Context context,
final int fallbackResId) {
final AssetFileDescriptor afd = context.getResources().openRawResourceFd(fallbackResId);
if (afd == null) {
@@ -149,7 +149,7 @@ final class BinaryDictionaryGetter {
* @param context the context on which to open the files upon.
* @return an array of binary dictionary files, which may be empty but may not be null.
*/
- private static File[] getCachedWordLists(final String locale, final Context context) {
+ public static File[] getCachedWordLists(final String locale, final Context context) {
final File[] directoryList = DictionaryInfoUtils.getCachedDirectoryList(context);
if (null == directoryList) return EMPTY_FILE_ARRAY;
final HashMap<String, FileAndMatchLevel> cacheFiles = CollectionUtils.newHashMap();