diff options
author | 2012-03-22 18:08:23 +0900 | |
---|---|---|
committer | 2012-03-22 18:08:23 +0900 | |
commit | 109728193e45262099cbf88d8d6fcc4ed05240ca (patch) | |
tree | 053589351cd045c648a3a8ca315076a30c09eff7 /java/src | |
parent | 9c4396abb3760166773f38e9ea12c27c795f54eb (diff) | |
download | latinime-109728193e45262099cbf88d8d6fcc4ed05240ca.tar.gz latinime-109728193e45262099cbf88d8d6fcc4ed05240ca.tar.xz latinime-109728193e45262099cbf88d8d6fcc4ed05240ca.zip |
Don't rely on spell checker proximity in tests
This fixes the input logic tests that were broken and suppresses
their dependency upon the spell checker proximity. Instead, it
gets the Keyboard instance from Latin IME and uses the actual
coordinates, which results in a test run closer to what actually
happens during typing.
Change-Id: I3a81d249ee7fb3ac6ae6940aa2e8b2421e829e5c
Diffstat (limited to 'java/src')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index e67f0ea05..98dfdda17 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -196,7 +196,7 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar private InputMethodManagerCompatWrapper mImm; private Resources mResources; private SharedPreferences mPrefs; - private final KeyboardSwitcher mKeyboardSwitcher; + /* package for tests */ final KeyboardSwitcher mKeyboardSwitcher; private final SubtypeSwitcher mSubtypeSwitcher; private VoiceProxy mVoiceProxy; private boolean mShouldSwitchToLastSubtype = true; |