diff options
author | 2012-08-14 22:49:59 +0900 | |
---|---|---|
committer | 2012-08-15 15:44:45 +0900 | |
commit | 3979f060f0650cbc117eee0307d05fb0be78c6f2 (patch) | |
tree | 67dc373f51dc85b43aa633c6cbf5328de163a404 /java/src/com/android/inputmethod/latin/Dictionary.java | |
parent | 05384933097c1e9c35e8be5c03757d072e5ffa46 (diff) | |
download | latinime-3979f060f0650cbc117eee0307d05fb0be78c6f2.tar.gz latinime-3979f060f0650cbc117eee0307d05fb0be78c6f2.tar.xz latinime-3979f060f0650cbc117eee0307d05fb0be78c6f2.zip |
Step 28-A Introduce the session Id to getSuggestion
Change-Id: I39d9bf1a7c272eb16d6ed4698f52457579b40f10
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. |