Commit 30ec45fd authored by Leonardo Aramaki's avatar Leonardo Aramaki

Some lint warning fixes

parent e62d4a84
...@@ -79,10 +79,10 @@ class EmojiParser { ...@@ -79,10 +79,10 @@ class EmojiParser {
val px = context.resources.getDimensionPixelSize(R.dimen.custom_emoji_small) val px = context.resources.getDimensionPixelSize(R.dimen.custom_emoji_small)
return spannable.also { return spannable.also { sp ->
regex.findAll(spannable).iterator().forEach { match -> regex.findAll(spannable).iterator().forEach { match ->
customEmojis.find { it.shortname.toLowerCase() == match.value.toLowerCase() }?.let { customEmojis.find { it.shortname.toLowerCase() == match.value.toLowerCase() }?.let { emoji ->
it.url?.let { url -> emoji.url?.let { url ->
try { try {
val glideRequest = if (url.endsWith("gif", true)) { val glideRequest = if (url.endsWith("gif", true)) {
GlideApp.with(context).asGif() GlideApp.with(context).asGif()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment