diff options
author | 2013-04-10 19:35:50 -0700 | |
---|---|---|
committer | 2013-04-10 19:35:50 -0700 | |
commit | 1aaaa64da8d818dd7a91c024eb4fa2d9e1459f93 (patch) | |
tree | f2cadacc2e2fd63043b6d365c296df62dc656d24 /tests/src/com/android/inputmethod/latin/InputTestsBase.java | |
parent | fd89cd20c956ce9618353dcd5d7648a2bab3b7ab (diff) | |
parent | 75618c3321b8eae559886ba5f71e967591da7065 (diff) | |
download | latinime-1aaaa64da8d818dd7a91c024eb4fa2d9e1459f93.tar.gz latinime-1aaaa64da8d818dd7a91c024eb4fa2d9e1459f93.tar.xz latinime-1aaaa64da8d818dd7a91c024eb4fa2d9e1459f93.zip |
am 75618c33: am 19dcd154: Merge "Offer to add any OOV typed word to the dictionary."
* commit '75618c3321b8eae559886ba5f71e967591da7065':
Offer to add any OOV typed word to the dictionary.
Diffstat (limited to 'tests/src/com/android/inputmethod/latin/InputTestsBase.java')
-rw-r--r-- | tests/src/com/android/inputmethod/latin/InputTestsBase.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/src/com/android/inputmethod/latin/InputTestsBase.java b/tests/src/com/android/inputmethod/latin/InputTestsBase.java index 04e1f932a..4583eab2f 100644 --- a/tests/src/com/android/inputmethod/latin/InputTestsBase.java +++ b/tests/src/com/android/inputmethod/latin/InputTestsBase.java @@ -36,6 +36,7 @@ import android.widget.TextView; import com.android.inputmethod.keyboard.Key; import com.android.inputmethod.keyboard.Keyboard; +import com.android.inputmethod.latin.SuggestedWords.SuggestedWordInfo; import java.util.Locale; @@ -255,7 +256,8 @@ public class InputTestsBase extends ServiceTestCase<LatinIME> { } protected void pickSuggestionManually(final int index, final String suggestion) { - mLatinIME.pickSuggestionManually(index, suggestion); + mLatinIME.pickSuggestionManually(index, new SuggestedWordInfo(suggestion, 1, + SuggestedWordInfo.KIND_CORRECTION, "main")); } // Helper to avoid writing the try{}catch block each time |