aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/com/android/inputmethod/latin/InputTestsBase.java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2013-01-31 00:19:23 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-01-31 00:19:23 +0000
commit3c67f6a2d020a6e1d85abc32e1d1477439f917f4 (patch)
tree62bfc4794f0fe977598b1eca373a4b8ee9a9eb68 /tests/src/com/android/inputmethod/latin/InputTestsBase.java
parent559d1f0ced51195f1a5b06b765edfdf2c1d2356b (diff)
parent01a4ebcd88f8a7001aac2f7f45293ceab717a30d (diff)
downloadlatinime-3c67f6a2d020a6e1d85abc32e1d1477439f917f4.tar.gz
latinime-3c67f6a2d020a6e1d85abc32e1d1477439f917f4.tar.xz
latinime-3c67f6a2d020a6e1d85abc32e1d1477439f917f4.zip
Merge "Add a way to know externally if we're installing a new dict"
Diffstat (limited to 'tests/src/com/android/inputmethod/latin/InputTestsBase.java')
-rw-r--r--tests/src/com/android/inputmethod/latin/InputTestsBase.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/src/com/android/inputmethod/latin/InputTestsBase.java b/tests/src/com/android/inputmethod/latin/InputTestsBase.java
index a01fef2e2..10d415ba8 100644
--- a/tests/src/com/android/inputmethod/latin/InputTestsBase.java
+++ b/tests/src/com/android/inputmethod/latin/InputTestsBase.java
@@ -231,8 +231,8 @@ public class InputTestsBase extends ServiceTestCase<LatinIME> {
}
protected void waitForDictionaryToBeLoaded() {
- int remainingAttempts = 10;
- while (remainingAttempts > 0 && !mLatinIME.mSuggest.hasMainDictionary()) {
+ int remainingAttempts = 300;
+ while (remainingAttempts > 0 && mLatinIME.mSuggest.isCurrentlyWaitingForMainDictionary()) {
try {
Thread.sleep(200);
} catch (InterruptedException e) {