am 7f386acd: Make logs less spammy.

* commit '7f386acdd1bcf7bfd6b48ee4d01bf3f2dc52e2ce':
  Make logs less spammy.
main
Dan Zivkovic 2015-04-07 18:51:25 +00:00 committed by Android Git Automerger
commit b9b6e287ea
1 changed files with 6 additions and 2 deletions

View File

@ -271,10 +271,14 @@ public abstract class AndroidWordLevelSpellCheckerSession extends Session {
final int capitalizeType = StringUtils.getCapitalizationType(text); final int capitalizeType = StringUtils.getCapitalizationType(text);
if (isInDictForAnyCapitalization(text, capitalizeType)) { if (isInDictForAnyCapitalization(text, capitalizeType)) {
Log.i(TAG, "onGetSuggestionsInternal() : [" + text + "] is a valid word"); if (DebugFlags.DEBUG_ENABLED) {
Log.i(TAG, "onGetSuggestionsInternal() : [" + text + "] is a valid word");
}
return AndroidSpellCheckerService.getInDictEmptySuggestions(); return AndroidSpellCheckerService.getInDictEmptySuggestions();
} }
Log.i(TAG, "onGetSuggestionsInternal() : [" + text + "] is NOT a valid word"); if (DebugFlags.DEBUG_ENABLED) {
Log.i(TAG, "onGetSuggestionsInternal() : [" + text + "] is NOT a valid word");
}
final Keyboard keyboard = mService.getKeyboardForLocale(mLocale); final Keyboard keyboard = mService.getKeyboardForLocale(mLocale);
if (null == keyboard) { if (null == keyboard) {