Make a function a one-liner (A16)
...to better inline it Change-Id: I88496b8f18b81f0c05e4bbf2d1039de1f93e0c25
This commit is contained in:
parent
a96a11949f
commit
42dde06782
1 changed files with 2 additions and 2 deletions
|
@ -91,8 +91,8 @@ public class AutoCorrection {
|
|||
public static boolean shouldAutoCorrectToSelf(
|
||||
final ConcurrentHashMap<String, Dictionary> dictionaries,
|
||||
final CharSequence consideredWord) {
|
||||
if (TextUtils.isEmpty(consideredWord)) return false;
|
||||
return !allowsToBeAutoCorrected(dictionaries, consideredWord, false);
|
||||
return (!TextUtils.isEmpty(consideredWord) && !allowsToBeAutoCorrected(dictionaries,
|
||||
consideredWord, false));
|
||||
}
|
||||
|
||||
public static boolean hasAutoCorrectionForBinaryDictionary(SuggestedWordInfo suggestion,
|
||||
|
|
Loading…
Reference in a new issue