Remove a useless argument
Change-Id: I713433a3225193489fad5bdafcf302b529903116
This commit is contained in:
parent
28e59b98c6
commit
36c1b37914
1 changed files with 2 additions and 2 deletions
|
@ -454,7 +454,7 @@ public class Suggest implements Dictionary.WordCallback {
|
||||||
autoCorrectionAvailable &= !wordComposer.isMostlyCaps();
|
autoCorrectionAvailable &= !wordComposer.isMostlyCaps();
|
||||||
builder.setTypedWordValid(!allowsToBeAutoCorrected).setHasMinimalSuggestion(
|
builder.setTypedWordValid(!allowsToBeAutoCorrected).setHasMinimalSuggestion(
|
||||||
autoCorrectionAvailable);
|
autoCorrectionAvailable);
|
||||||
if (Suggest.shouldBlockAutoCorrectionBySafetyNet(builder, this, mAutoCorrectionThreshold,
|
if (Suggest.shouldBlockAutoCorrectionBySafetyNet(builder, mAutoCorrectionThreshold,
|
||||||
!allowsToBeAutoCorrected)) {
|
!allowsToBeAutoCorrected)) {
|
||||||
builder.setShouldBlockAutoCorrectionBySafetyNet();
|
builder.setShouldBlockAutoCorrectionBySafetyNet();
|
||||||
}
|
}
|
||||||
|
@ -609,7 +609,7 @@ public class Suggest implements Dictionary.WordCallback {
|
||||||
// TODO: Resolve the inconsistencies between the native auto correction algorithms and
|
// TODO: Resolve the inconsistencies between the native auto correction algorithms and
|
||||||
// this safety net
|
// this safety net
|
||||||
public static boolean shouldBlockAutoCorrectionBySafetyNet(
|
public static boolean shouldBlockAutoCorrectionBySafetyNet(
|
||||||
final SuggestedWords.Builder suggestedWordsBuilder, final Suggest suggest,
|
final SuggestedWords.Builder suggestedWordsBuilder,
|
||||||
final double autoCorrectionThreshold, final boolean isTypedWordValid) {
|
final double autoCorrectionThreshold, final boolean isTypedWordValid) {
|
||||||
// Safety net for auto correction.
|
// Safety net for auto correction.
|
||||||
// Actually if we hit this safety net, it's actually a bug.
|
// Actually if we hit this safety net, it's actually a bug.
|
||||||
|
|
Loading…
Reference in a new issue