We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 810f84f commit ccaa8abCopy full SHA for ccaa8ab
1 file changed
app/src/main/java/be/scri/services/GeneralKeyboardIME.kt
@@ -1202,16 +1202,14 @@ abstract class GeneralKeyboardIME(
1202
fun findEmojisForPrefix(
1203
emojiKeywords: HashMap<String, MutableList<String>>?,
1204
prefix: String,
1205
- ): MutableList<String>? {
1206
- Log.d("GeneralKeyboardIME", "Prefix: $prefix")
1207
- return emojiKeywords
+ ): MutableList<String>? =
+ emojiKeywords
1208
?.filterKeys { it.startsWith(prefix.lowercase(Locale.ROOT)) }
1209
?.values
1210
?.flatten()
1211
?.distinct()
1212
?.toMutableList()
1213
?.takeIf { it.isNotEmpty() }
1214
- }
1215
1216
/**
1217
* Finds the grammatical gender(s) for the last typed word.
0 commit comments