Merge "Revert "Make a member read-only""
This commit is contained in:
commit
5a2c19d4fb
3 changed files with 3 additions and 7 deletions
|
@ -29,7 +29,7 @@ public class SuggestedWords {
|
|||
|
||||
public final List<CharSequence> mWords;
|
||||
public final boolean mTypedWordValid;
|
||||
private final boolean mHasAutoCorrectionCandidate;
|
||||
public final boolean mHasAutoCorrectionCandidate;
|
||||
public final boolean mIsPunctuationSuggestions;
|
||||
private final List<SuggestedWordInfo> mSuggestedWordInfoList;
|
||||
private boolean mShouldBlockAutoCorrection;
|
||||
|
@ -69,10 +69,6 @@ public class SuggestedWords {
|
|||
return mHasAutoCorrectionCandidate && ((size() > 1 && !mTypedWordValid) || mTypedWordValid);
|
||||
}
|
||||
|
||||
public boolean hasAutoCorrectionCandidate() {
|
||||
return mHasAutoCorrectionCandidate;
|
||||
}
|
||||
|
||||
public boolean isPunctuationSuggestions() {
|
||||
return mIsPunctuationSuggestions;
|
||||
}
|
||||
|
|
|
@ -775,7 +775,7 @@ public class Utils {
|
|||
}
|
||||
|
||||
public static boolean willAutoCorrect(SuggestedWords suggestions) {
|
||||
return !suggestions.mTypedWordValid && suggestions.hasAutoCorrectionCandidate()
|
||||
return !suggestions.mTypedWordValid && suggestions.mHasAutoCorrectionCandidate
|
||||
&& !suggestions.shouldBlockAutoCorrection();
|
||||
}
|
||||
|
||||
|
|
|
@ -307,7 +307,7 @@ public class SuggestionsView extends RelativeLayout implements OnClickListener,
|
|||
color = mColorTypedWord;
|
||||
}
|
||||
if (LatinImeLogger.sDBG) {
|
||||
if (index == mCenterSuggestionIndex && suggestions.hasAutoCorrectionCandidate()
|
||||
if (index == mCenterSuggestionIndex && suggestions.mHasAutoCorrectionCandidate
|
||||
&& suggestions.shouldBlockAutoCorrection()) {
|
||||
return 0xFFFF0000;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue