diff options
author | 2012-08-14 23:47:10 -0700 | |
---|---|---|
committer | 2012-08-14 23:47:10 -0700 | |
commit | 258eaa48b4b7921a712dab24640273fd3e6c1efc (patch) | |
tree | 67dc373f51dc85b43aa633c6cbf5328de163a404 /java/src/com/android/inputmethod/latin/Dictionary.java | |
parent | 641373b7356cb874b8bd413d49f2840abe026260 (diff) | |
parent | 3979f060f0650cbc117eee0307d05fb0be78c6f2 (diff) | |
download | latinime-258eaa48b4b7921a712dab24640273fd3e6c1efc.tar.gz latinime-258eaa48b4b7921a712dab24640273fd3e6c1efc.tar.xz latinime-258eaa48b4b7921a712dab24640273fd3e6c1efc.zip |
am 3979f060: Step 28-A Introduce the session Id to getSuggestion
* commit '3979f060f0650cbc117eee0307d05fb0be78c6f2':
Step 28-A Introduce the session Id to getSuggestion
Diffstat (limited to 'java/src/com/android/inputmethod/latin/Dictionary.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/Dictionary.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/latin/Dictionary.java b/java/src/com/android/inputmethod/latin/Dictionary.java index 60fe17b19..2565dfc66 100644 --- a/java/src/com/android/inputmethod/latin/Dictionary.java +++ b/java/src/com/android/inputmethod/latin/Dictionary.java @@ -62,6 +62,13 @@ public abstract class Dictionary { abstract public ArrayList<SuggestedWordInfo> getSuggestions(final WordComposer composer, final CharSequence prevWord, final ProximityInfo proximityInfo); + // The default implementation of this method ignores sessionId. + // Subclasses that want to use sessionId need to override this method. + public ArrayList<SuggestedWordInfo> getSuggestionsWithSessionId(final WordComposer composer, + final CharSequence prevWord, final ProximityInfo proximityInfo, int sessionId) { + return getSuggestions(composer, prevWord, proximityInfo); + } + /** * Checks if the given word occurs in the dictionary * @param word the word to search for. The search should be case-insensitive. |