aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/Dictionary.java
diff options
context:
space:
mode:
authorSatoshi Kataoka <satok@google.com>2012-08-14 22:49:59 +0900
committerSatoshi Kataoka <satok@google.com>2012-08-15 15:44:45 +0900
commit3979f060f0650cbc117eee0307d05fb0be78c6f2 (patch)
tree67dc373f51dc85b43aa633c6cbf5328de163a404 /java/src/com/android/inputmethod/latin/Dictionary.java
parent05384933097c1e9c35e8be5c03757d072e5ffa46 (diff)
downloadlatinime-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.java7
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.