1
0
mirror of https://github.com/tateisu/SubwayTooter synced 2025-01-11 17:04:47 +01:00

nicoru絵文字に関する処理を削除

This commit is contained in:
tateisu 2018-01-19 19:27:52 +09:00
parent cd5e2dc3b9
commit c14f0e0db0

View File

@ -40,9 +40,6 @@ object EmojiDecoder {
private const val codepointColon = ':'.toInt()
private const val codepointAtmark = '@'.toInt()
private val reNicoru = Pattern.compile("\\Anicoru\\d*\\z", Pattern.CASE_INSENSITIVE)
private val reHohoemi = Pattern.compile("\\Ahohoemi\\d*\\z", Pattern.CASE_INSENSITIVE)
private class EmojiStringBuilder(
internal val context : Context,
internal val options : DecodeOptions
@ -260,17 +257,7 @@ object EmojiDecoder {
}
}
when {
reHohoemi.matcher(name).find() -> builder.addImageSpan(
part,
R.drawable.emoji_hohoemi
)
reNicoru.matcher(name).find() -> builder.addImageSpan(
part,
R.drawable.emoji_nicoru
)
else -> builder.addUnicodeString(part)
}
builder.addUnicodeString(part)
}
})