aboutsummaryrefslogtreecommitdiffstats
path: root/java/src
diff options
context:
space:
mode:
authorKen Wakasa <kwakasa@google.com>2013-09-03 01:56:10 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-09-03 01:56:10 -0700
commit43e8a4f208ddedcdb875fd221880e660e86d0f57 (patch)
treeb74fc1a373715fe1b05e35b5c427cffc9cd83dc4 /java/src
parent470e83399af7cf75f0c216768a850ce206279631 (diff)
parentc4c7a59a12c75bf840df3a60bba12aeb48826f4a (diff)
downloadlatinime-43e8a4f208ddedcdb875fd221880e660e86d0f57.tar.gz
latinime-43e8a4f208ddedcdb875fd221880e660e86d0f57.tar.xz
latinime-43e8a4f208ddedcdb875fd221880e660e86d0f57.zip
am c4c7a59a: Merge "Change GET_SUGGESTED_WORDS_TIMEOUT to 50."
* commit 'c4c7a59a12c75bf840df3a60bba12aeb48826f4a': Change GET_SUGGESTED_WORDS_TIMEOUT to 50.
Diffstat (limited to 'java/src')
-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 98767ad22..c8647502e 100644
--- a/java/src/com/android/inputmethod/latin/LatinIME.java
+++ b/java/src/com/android/inputmethod/latin/LatinIME.java
@@ -131,7 +131,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
private static final int PERIOD_FOR_AUDIO_AND_HAPTIC_FEEDBACK_IN_KEY_REPEAT = 2;
- private static final int GET_SUGGESTED_WORDS_TIMEOUT = 500;
+ private static final int GET_SUGGESTED_WORDS_TIMEOUT = 50;
/**
* The name of the scheme used by the Package Manager to warn of a new package installation,
@@ -2396,6 +2396,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
}
);
+ // TODO: Quit blocking the main thread.
try {
// Wait for the result of getSuggestedWords
// We set the time out to avoid ANR.