diff options
author | 2013-04-09 10:28:47 +0000 | |
---|---|---|
committer | 2013-04-09 10:28:47 +0000 | |
commit | 19dcd154932b8aef07f371bdda7f879a70c3c3c8 (patch) | |
tree | b1b13d6f5bc29a68fbde715464f10e6265e953d2 /tests/src | |
parent | f31553bc09f83d21b9321a2c45a2213c28282408 (diff) | |
parent | 9310f42a36eabe99ed7dcd3b835d6cdaa3c6fdca (diff) | |
download | latinime-19dcd154932b8aef07f371bdda7f879a70c3c3c8.tar.gz latinime-19dcd154932b8aef07f371bdda7f879a70c3c3c8.tar.xz latinime-19dcd154932b8aef07f371bdda7f879a70c3c3c8.zip |
Merge "Offer to add any OOV typed word to the dictionary."
Diffstat (limited to 'tests/src')
-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 |