am c4c7a59a: Merge "Change GET_SUGGESTED_WORDS_TIMEOUT to 50."

* commit 'c4c7a59a12c75bf840df3a60bba12aeb48826f4a':
  Change GET_SUGGESTED_WORDS_TIMEOUT to 50.
This commit is contained in:
Ken Wakasa 2013-09-03 01:56:10 -07:00 committed by Android Git Automerger
commit 43e8a4f208

View file

@ -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 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, * 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 { try {
// Wait for the result of getSuggestedWords // Wait for the result of getSuggestedWords
// We set the time out to avoid ANR. // We set the time out to avoid ANR.