Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -962,7 +962,7 @@ class EmojiPalettesView @JvmOverloads constructor(
}

private fun performSearch(query: String?) {
Log.d("EmojiSearch", "performSearch: $query")
Log.d("EmojiSearch", "performSearch: ${query?.length ?: 0} chars")
val dict = sDictionaryFacilitator
if (dict == null || query.isNullOrEmpty()) {
mSearchAdapter?.submitList(Collections.emptyList())
Expand All @@ -984,7 +984,7 @@ class EmojiPalettesView @JvmOverloads constructor(
}
}

Log.d("EmojiSearch", "Found ${results.size} results for: $query")
Log.d("EmojiSearch", "Found ${results.size} results")
mSearchAdapter?.submitList(results)
mSearchResultsList?.scrollToPosition(0)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -517,9 +517,9 @@ class DictionaryFacilitatorImpl : DictionaryFacilitator {
val localeToUse = if (dictionaryGroup.locale.language.isNullOrEmpty()) null else dictionaryGroup.locale
UserDictionary.Words.addWord(userDict.mContext, wordToUse, 250, null, localeToUse)
userDict.addUnigramEntry(wordToUse, 250, null, 0, false, false, (System.currentTimeMillis() / 1000).toInt())
Log.i(TAG, "Added word '$wordToUse' to personal dictionary for locale $localeToUse (typed $count times, threshold $threshold)")
Log.i(TAG, "Added a word to the personal dictionary for locale $localeToUse (typed $count times, threshold $threshold)")
}.onFailure {
Log.w(TAG, "Failed to add word '$wordToUse' to personal dictionary", it)
Log.w(TAG, "Failed to add a word to the personal dictionary", it)
}
}
}
Expand Down
Loading