diff options
author | 2015-04-15 18:37:14 +0000 | |
---|---|---|
committer | 2015-04-15 18:37:14 +0000 | |
commit | a527566fd250957cf8a26bb42bf217b65af9d744 (patch) | |
tree | f1bc02749c1ba0c0168c20a8a965581599643bc1 /java/src/com/android/inputmethod/dictionarypack/UpdateHandler.java | |
parent | 1b79b25f243fd610b3594bb72f93a281a1a0e675 (diff) | |
parent | 3a5de64110eab7ae0b6b1da86b5ce30d5b16bd7a (diff) | |
download | latinime-a527566fd250957cf8a26bb42bf217b65af9d744.tar.gz latinime-a527566fd250957cf8a26bb42bf217b65af9d744.tar.xz latinime-a527566fd250957cf8a26bb42bf217b65af9d744.zip |
am 3a5de641: Do not re-download the unused dictionaries.
* commit '3a5de64110eab7ae0b6b1da86b5ce30d5b16bd7a':
Do not re-download the unused dictionaries.
Diffstat (limited to 'java/src/com/android/inputmethod/dictionarypack/UpdateHandler.java')
-rw-r--r-- | java/src/com/android/inputmethod/dictionarypack/UpdateHandler.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/dictionarypack/UpdateHandler.java b/java/src/com/android/inputmethod/dictionarypack/UpdateHandler.java index e720f3cd0..e61547a9d 100644 --- a/java/src/com/android/inputmethod/dictionarypack/UpdateHandler.java +++ b/java/src/com/android/inputmethod/dictionarypack/UpdateHandler.java @@ -95,6 +95,8 @@ public final class UpdateHandler { // Name of the category for the main dictionary public static final String MAIN_DICTIONARY_CATEGORY = "main"; + public static final String TEMP_DICT_FILE_SUB = "___"; + // The id for the "dictionary available" notification. static final int DICT_AVAILABLE_NOTIFICATION_ID = 1; @@ -743,7 +745,7 @@ public final class UpdateHandler { throws IOException { DebugLogUtils.l("Entering openTempFileOutput"); final File dir = context.getFilesDir(); - final File f = File.createTempFile(locale + "___", DICT_FILE_SUFFIX, dir); + final File f = File.createTempFile(locale + TEMP_DICT_FILE_SUB, DICT_FILE_SUFFIX, dir); DebugLogUtils.l("File name is", f.getName()); return f.getName(); } |