aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/DictionaryInfoUtils.java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2013-04-25 02:50:11 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-04-25 02:50:11 -0700
commitc090b38c15cadf9655b2ba026639a42b76c2ea1f (patch)
tree453cc0bd5ee83493a3948de719f0d67e6a17bb79 /java/src/com/android/inputmethod/latin/DictionaryInfoUtils.java
parent36de7a5ea32ef6738a2923581e0b14a00b8a6808 (diff)
parenta995bf4031dd19ff9c17dd4bf7969c713dc16dcf (diff)
downloadlatinime-c090b38c15cadf9655b2ba026639a42b76c2ea1f.tar.gz
latinime-c090b38c15cadf9655b2ba026639a42b76c2ea1f.tar.xz
latinime-c090b38c15cadf9655b2ba026639a42b76c2ea1f.zip
am a995bf40: Put temp files within app files
* commit 'a995bf4031dd19ff9c17dd4bf7969c713dc16dcf': Put temp files within app files
Diffstat (limited to 'java/src/com/android/inputmethod/latin/DictionaryInfoUtils.java')
-rw-r--r--java/src/com/android/inputmethod/latin/DictionaryInfoUtils.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/latin/DictionaryInfoUtils.java b/java/src/com/android/inputmethod/latin/DictionaryInfoUtils.java
index dcfa483f8..df7bad8d0 100644
--- a/java/src/com/android/inputmethod/latin/DictionaryInfoUtils.java
+++ b/java/src/com/android/inputmethod/latin/DictionaryInfoUtils.java
@@ -129,6 +129,13 @@ public class DictionaryInfoUtils {
}
/**
+ * Helper method to get the top level temp directory.
+ */
+ public static String getWordListTempDirectory(final Context context) {
+ return context.getFilesDir() + File.separator + "tmp";
+ }
+
+ /**
* Reverse escaping done by replaceFileNameDangerousCharacters.
*/
public static String getWordListIdFromFileName(final String fname) {