Some renaming

Change-Id: I445277cb3af469a0145a8da0ffb801b7e19048cd
This commit is contained in:
Jean Chalard 2012-03-02 20:46:54 +09:00
parent 5edda4111e
commit a83a53ba24
4 changed files with 9 additions and 9 deletions

View file

@ -1838,7 +1838,7 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar
final boolean shouldBlockAutoCorrectionBySafetyNet =
Utils.shouldBlockAutoCorrectionBySafetyNet(suggestedWords, mSuggest);
if (shouldBlockAutoCorrectionBySafetyNet) {
suggestedWords.setShouldBlockAutoCorrection();
suggestedWords.setShouldBlockAutoCorrectionBySatefyNet();
}
final CharSequence autoCorrection;
if (suggestedWords.size() > 0) {

View file

@ -32,7 +32,7 @@ public class SuggestedWords {
public final boolean mHasAutoCorrectionCandidate;
public final boolean mIsPunctuationSuggestions;
private final List<SuggestedWordInfo> mSuggestedWordInfoList;
private boolean mShouldBlockAutoCorrection;
private boolean mShouldBlockAutoCorrectionBySafetyNet;
private SuggestedWords(List<CharSequence> words, boolean typedWordValid,
boolean hasAutoCorrectionCandidate, boolean isPunctuationSuggestions,
@ -46,7 +46,7 @@ public class SuggestedWords {
mHasAutoCorrectionCandidate = hasAutoCorrectionCandidate;
mIsPunctuationSuggestions = isPunctuationSuggestions;
mSuggestedWordInfoList = suggestedWordInfoList;
mShouldBlockAutoCorrection = false;
mShouldBlockAutoCorrectionBySafetyNet = false;
}
public int size() {
@ -69,12 +69,12 @@ public class SuggestedWords {
return mIsPunctuationSuggestions;
}
public void setShouldBlockAutoCorrection() {
mShouldBlockAutoCorrection = true;
public void setShouldBlockAutoCorrectionBySatefyNet() {
mShouldBlockAutoCorrectionBySafetyNet = true;
}
public boolean shouldBlockAutoCorrection() {
return mShouldBlockAutoCorrection;
public boolean shouldBlockAutoCorrectionBySafetyNet() {
return mShouldBlockAutoCorrectionBySafetyNet;
}
public static class Builder {

View file

@ -776,7 +776,7 @@ public class Utils {
public static boolean willAutoCorrect(SuggestedWords suggestions) {
return !suggestions.mTypedWordValid && suggestions.mHasAutoCorrectionCandidate
&& !suggestions.shouldBlockAutoCorrection();
&& !suggestions.shouldBlockAutoCorrectionBySafetyNet();
}
public static class Stats {

View file

@ -308,7 +308,7 @@ public class SuggestionsView extends RelativeLayout implements OnClickListener,
}
if (LatinImeLogger.sDBG) {
if (index == mCenterSuggestionIndex && suggestions.mHasAutoCorrectionCandidate
&& suggestions.shouldBlockAutoCorrection()) {
&& suggestions.shouldBlockAutoCorrectionBySafetyNet()) {
return 0xFFFF0000;
}
}