Cleanup (A5)
Change-Id: I06134145b47c46bbc6c340ca539f34a01e2ca163
This commit is contained in:
parent
4c4e3a0949
commit
251bb70f08
2 changed files with 0 additions and 18 deletions
|
@ -21,7 +21,6 @@ import com.android.inputmethod.latin.SuggestedWords.SuggestedWordInfo;
|
|||
import android.text.TextUtils;
|
||||
import android.util.Log;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
|
||||
public class AutoCorrection {
|
||||
|
|
|
@ -162,23 +162,6 @@ public class Suggest {
|
|||
mAutoCorrectionThreshold = threshold;
|
||||
}
|
||||
|
||||
private static CharSequence capitalizeWord(final boolean all, final boolean first,
|
||||
final CharSequence word) {
|
||||
if (TextUtils.isEmpty(word) || !(all || first)) return word;
|
||||
final int wordLength = word.length();
|
||||
final StringBuilder sb = new StringBuilder(getApproxMaxWordLength());
|
||||
// TODO: Must pay attention to locale when changing case.
|
||||
if (all) {
|
||||
sb.append(word.toString().toUpperCase());
|
||||
} else if (first) {
|
||||
sb.append(Character.toUpperCase(word.charAt(0)));
|
||||
if (wordLength > 1) {
|
||||
sb.append(word.subSequence(1, wordLength));
|
||||
}
|
||||
}
|
||||
return sb;
|
||||
}
|
||||
|
||||
// TODO: cleanup dictionaries looking up and suggestions building with SuggestedWords.Builder
|
||||
public SuggestedWords getSuggestedWords(
|
||||
final WordComposer wordComposer, CharSequence prevWordForBigram,
|
||||
|
|
Loading…
Reference in a new issue