aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/spellcheck/AndroidSpellCheckerService.java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2012-12-11 02:44:55 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2012-12-11 02:44:55 -0800
commitf73d94a8fd73c77cc49ec261ce59563f992577ab (patch)
tree6d67deb3b450aadad43f72dd20d41716460ae2c4 /java/src/com/android/inputmethod/latin/spellcheck/AndroidSpellCheckerService.java
parent0be1651f95ce29e4779469b07356b84528375d1f (diff)
parentdd8d2a89c55f099ddb66dff3daa36dce98ed9b32 (diff)
downloadlatinime-f73d94a8fd73c77cc49ec261ce59563f992577ab.tar.gz
latinime-f73d94a8fd73c77cc49ec261ce59563f992577ab.tar.xz
latinime-f73d94a8fd73c77cc49ec261ce59563f992577ab.zip
am dd8d2a89: Merge "Remove a useless member"
* commit 'dd8d2a89c55f099ddb66dff3daa36dce98ed9b32': Remove a useless member
Diffstat (limited to 'java/src/com/android/inputmethod/latin/spellcheck/AndroidSpellCheckerService.java')
-rw-r--r--java/src/com/android/inputmethod/latin/spellcheck/AndroidSpellCheckerService.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/latin/spellcheck/AndroidSpellCheckerService.java b/java/src/com/android/inputmethod/latin/spellcheck/AndroidSpellCheckerService.java
index 2f146f86c..89d6c9010 100644
--- a/java/src/com/android/inputmethod/latin/spellcheck/AndroidSpellCheckerService.java
+++ b/java/src/com/android/inputmethod/latin/spellcheck/AndroidSpellCheckerService.java
@@ -294,6 +294,8 @@ public final class AndroidSpellCheckerService extends SpellCheckerService
final String[] gatheredSuggestions;
final boolean hasRecommendedSuggestions;
if (0 == mLength) {
+ // TODO: the comment below describes what is intended, but in the practice
+ // mBestSuggestion is only ever set to null so it doesn't work. Fix this.
// Either we found no suggestions, or we found some BUT the max length was 0.
// If we found some mBestSuggestion will not be null. If it is null, then
// we found none, regardless of the max length.