diff options
author | 2014-09-16 23:22:59 +0000 | |
---|---|---|
committer | 2014-09-16 23:22:59 +0000 | |
commit | e47d7268faa16b49588ece2f884043e90c0e3fd4 (patch) | |
tree | acd8474872c818fe12a0479467236ff02d361966 /java/src/com/android/inputmethod/latin/WordComposer.java | |
parent | 87c7d212e7242000ce3f1004dae8e1150d6bcc9d (diff) | |
parent | da9bd4b9fe2fdbf1af8fb7e142d9865c9adabb79 (diff) | |
download | latinime-e47d7268faa16b49588ece2f884043e90c0e3fd4.tar.gz latinime-e47d7268faa16b49588ece2f884043e90c0e3fd4.tar.xz latinime-e47d7268faa16b49588ece2f884043e90c0e3fd4.zip |
am da9bd4b9: Merge "Add StatsUtils.onAutoCorrection method."
* commit 'da9bd4b9fe2fdbf1af8fb7e142d9865c9adabb79':
Add StatsUtils.onAutoCorrection method.
Diffstat (limited to 'java/src/com/android/inputmethod/latin/WordComposer.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/WordComposer.java | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/latin/WordComposer.java b/java/src/com/android/inputmethod/latin/WordComposer.java index 32d1fe372..567aa07f1 100644 --- a/java/src/com/android/inputmethod/latin/WordComposer.java +++ b/java/src/com/android/inputmethod/latin/WordComposer.java @@ -49,6 +49,7 @@ public final class WordComposer { private final ArrayList<Event> mEvents; private final InputPointers mInputPointers = new InputPointers(MAX_WORD_LENGTH); private String mAutoCorrection; + private String mAutoCorrectionDictionaryType; private boolean mIsResumed; private boolean mIsBatchMode; // A memory of the last rejected batch mode suggestion, if any. This goes like this: the user @@ -418,8 +419,9 @@ public final class WordComposer { /** * Sets the auto-correction for this word. */ - public void setAutoCorrection(final String correction) { + public void setAutoCorrection(final String correction, String dictType) { mAutoCorrection = correction; + mAutoCorrectionDictionaryType = dictType; } /** @@ -430,6 +432,13 @@ public final class WordComposer { } /** + * @return the auto-correction dictionary type or null if none. + */ + public String getAutoCorrectionDictionaryTypeOrNull() { + return mAutoCorrectionDictionaryType; + } + + /** * @return whether we started composing this word by resuming suggestion on an existing string */ public boolean isResumed() { |