mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Make a function a one-liner (A16)
...to better inline it Change-Id: I88496b8f18b81f0c05e4bbf2d1039de1f93e0c25
This commit is contained in:
parent
a96a11949f
commit
42dde06782
@ -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 New Issue
Block a user