mirror of
https://github.com/home-assistant/android
synced 2024-09-06 09:13:57 +00:00
Fix handling of line feed control char (#2148)
This commit is contained in:
parent
08c947f87c
commit
b2cea6f2c3
|
@ -1031,7 +1031,8 @@ class MessagingService : FirebaseMessagingService() {
|
|||
private fun prepareText(
|
||||
text: String
|
||||
): Spanned {
|
||||
var emojiParsedText = EmojiParser.parseToUnicode(text)
|
||||
var brText = text.replace("\\n", "<br>")
|
||||
var emojiParsedText = EmojiParser.parseToUnicode(brText)
|
||||
return HtmlCompat.fromHtml(emojiParsedText, HtmlCompat.FROM_HTML_MODE_LEGACY)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue