aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/Dictionary.java
diff options
context:
space:
mode:
authorSatoshi Kataoka <satok@google.com>2012-08-14 23:49:25 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2012-08-14 23:49:25 -0700
commitf5b627252343b9eed317c9d907644e8b8e34fbf9 (patch)
tree332ed446f6295cf7cf5e8c41842c2045230152cb /java/src/com/android/inputmethod/latin/Dictionary.java
parent7508d32a5fac32311b2d4c7cd11adecc1eeaca51 (diff)
parent258eaa48b4b7921a712dab24640273fd3e6c1efc (diff)
downloadlatinime-f5b627252343b9eed317c9d907644e8b8e34fbf9.tar.gz
latinime-f5b627252343b9eed317c9d907644e8b8e34fbf9.tar.xz
latinime-f5b627252343b9eed317c9d907644e8b8e34fbf9.zip
am 258eaa48: am 3979f060: Step 28-A Introduce the session Id to getSuggestion
* commit '258eaa48b4b7921a712dab24640273fd3e6c1efc': 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.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.