diff options
author | 2014-07-28 12:18:08 +0000 | |
---|---|---|
committer | 2014-07-28 12:18:08 +0000 | |
commit | 275079c9ae279ec331c68cdec4bcdf83808f7a96 (patch) | |
tree | 52c911160ab5b7b70e98b70c458f4001bc8c3ac9 /java/src/com/android/inputmethod/latin/spellcheck/AndroidSpellCheckerSession.java | |
parent | 18855ae268ab6ab17459bd333efe77ee65a3a7fd (diff) | |
parent | d33f7e84ab44bb27c82c300b431518bb48919883 (diff) | |
download | latinime-275079c9ae279ec331c68cdec4bcdf83808f7a96.tar.gz latinime-275079c9ae279ec331c68cdec4bcdf83808f7a96.tar.xz latinime-275079c9ae279ec331c68cdec4bcdf83808f7a96.zip |
am d33f7e84: am ac82983f: am 6d7a0810: Merge "Fix a verifier error on ICS." into lmp-dev
* commit 'd33f7e84ab44bb27c82c300b431518bb48919883':
Fix a verifier error on ICS.
Diffstat (limited to 'java/src/com/android/inputmethod/latin/spellcheck/AndroidSpellCheckerSession.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/spellcheck/AndroidSpellCheckerSession.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/java/src/com/android/inputmethod/latin/spellcheck/AndroidSpellCheckerSession.java b/java/src/com/android/inputmethod/latin/spellcheck/AndroidSpellCheckerSession.java index 14ab2dbbf..34e01197a 100644 --- a/java/src/com/android/inputmethod/latin/spellcheck/AndroidSpellCheckerSession.java +++ b/java/src/com/android/inputmethod/latin/spellcheck/AndroidSpellCheckerSession.java @@ -153,7 +153,7 @@ public final class AndroidSpellCheckerSession extends AndroidWordLevelSpellCheck */ private SentenceSuggestionsInfo[] splitAndSuggest(TextInfo[] textInfos, int suggestionsLimit) { if (textInfos == null || textInfos.length == 0) { - return SentenceLevelAdapter.EMPTY_SENTENCE_SUGGESTIONS_INFOS; + return SentenceLevelAdapter.getEmptySentenceSuggestionsInfo(); } SentenceLevelAdapter sentenceLevelAdapter; synchronized(this) { @@ -168,7 +168,7 @@ public final class AndroidSpellCheckerSession extends AndroidWordLevelSpellCheck } } if (sentenceLevelAdapter == null) { - return SentenceLevelAdapter.EMPTY_SENTENCE_SUGGESTIONS_INFOS; + return SentenceLevelAdapter.getEmptySentenceSuggestionsInfo(); } final int infosSize = textInfos.length; final SentenceSuggestionsInfo[] retval = new SentenceSuggestionsInfo[infosSize]; |