Skip to content

Commit ccaa8ab

Browse files
committed
removed logs from testing
1 parent 810f84f commit ccaa8ab

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

app/src/main/java/be/scri/services/GeneralKeyboardIME.kt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1202,16 +1202,14 @@ abstract class GeneralKeyboardIME(
12021202
fun findEmojisForPrefix(
12031203
emojiKeywords: HashMap<String, MutableList<String>>?,
12041204
prefix: String,
1205-
): MutableList<String>? {
1206-
Log.d("GeneralKeyboardIME", "Prefix: $prefix")
1207-
return emojiKeywords
1205+
): MutableList<String>? =
1206+
emojiKeywords
12081207
?.filterKeys { it.startsWith(prefix.lowercase(Locale.ROOT)) }
12091208
?.values
12101209
?.flatten()
12111210
?.distinct()
12121211
?.toMutableList()
12131212
?.takeIf { it.isNotEmpty() }
1214-
}
12151213

12161214
/**
12171215
* Finds the grammatical gender(s) for the last typed word.

0 commit comments

Comments
 (0)