aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/LatinIME.java
diff options
context:
space:
mode:
authorAmith Yamasani <yamasani@google.com>2010-03-23 15:59:59 -0700
committerAmith Yamasani <yamasani@google.com>2010-03-23 16:21:46 -0700
commit4ff60be170872503cca0275ef3488b7379b5311b (patch)
tree83b1b2dd3fd0f4e2122f10712c4a98756c499284 /java/src/com/android/inputmethod/latin/LatinIME.java
parentbad436e93b49116f9005433845bf53126452a839 (diff)
downloadlatinime-4ff60be170872503cca0275ef3488b7379b5311b.tar.gz
latinime-4ff60be170872503cca0275ef3488b7379b5311b.tar.xz
latinime-4ff60be170872503cca0275ef3488b7379b5311b.zip
Write the auto dictionary data to disk in a background thread to avoid blocking the UI thread.
Bug: 2536846 This also potentially fixes the occasional hangs on pressing space. Need to verify. Bug: 2509010
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LatinIME.java')
-rw-r--r--java/src/com/android/inputmethod/latin/LatinIME.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java
index dc6be4346..86992db2d 100644
--- a/java/src/com/android/inputmethod/latin/LatinIME.java
+++ b/java/src/com/android/inputmethod/latin/LatinIME.java
@@ -158,7 +158,7 @@ public class LatinIME extends InputMethodService
private UserDictionary mUserDictionary;
private ContactsDictionary mContactsDictionary;
- private ExpandableDictionary mAutoDictionary;
+ private AutoDictionary mAutoDictionary;
private Hints mHints;
@@ -562,6 +562,7 @@ public class LatinIME extends InputMethodService
if (mInputView != null) {
mInputView.closing();
}
+ if (mAutoDictionary != null) mAutoDictionary.flushPendingWrites();
}
@Override