Fix unit test helper
Change-Id: I161b451404bbecb30d8e229004786b9e9882e41c
This commit is contained in:
parent
d628e72958
commit
d90be6c921
2 changed files with 5 additions and 0 deletions
|
@ -14,3 +14,7 @@
|
||||||
void waitUntilUpdateDBDone();
|
void waitUntilUpdateDBDone();
|
||||||
void waitForDictionaryLoading();
|
void waitForDictionaryLoading();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
-keep class com.android.inputmethod.latin.AutoCorrection {
|
||||||
|
java.lang.CharSequence getAutoCorrectionWord();
|
||||||
|
}
|
||||||
|
|
|
@ -73,6 +73,7 @@ public class SuggestHelper {
|
||||||
final int[] codes = mKeyDetector.newCodeArray();
|
final int[] codes = mKeyDetector.newCodeArray();
|
||||||
mKeyDetector.getKeyIndexAndNearbyCodes(x, y, codes);
|
mKeyDetector.getKeyIndexAndNearbyCodes(x, y, codes);
|
||||||
word.add(c, codes, x, y);
|
word.add(c, codes, x, y);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
word.add(c, new int[] { c }, WordComposer.NOT_A_COORDINATE, WordComposer.NOT_A_COORDINATE);
|
word.add(c, new int[] { c }, WordComposer.NOT_A_COORDINATE, WordComposer.NOT_A_COORDINATE);
|
||||||
|
|
Loading…
Reference in a new issue