From b005777a055a329f8a19ae612a694fbeb36ecf5c Mon Sep 17 00:00:00 2001 From: tateisu Date: Tue, 1 May 2018 13:43:27 +0900 Subject: [PATCH] fixup --- .idea/kotlinc.xml | 4 ++++ .../main/java/jp/juggler/subwaytooter/util/EmojiDecoder.kt | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.idea/kotlinc.xml b/.idea/kotlinc.xml index 43984f24..f4ceac8a 100644 --- a/.idea/kotlinc.xml +++ b/.idea/kotlinc.xml @@ -1,5 +1,9 @@ + + diff --git a/app/src/main/java/jp/juggler/subwaytooter/util/EmojiDecoder.kt b/app/src/main/java/jp/juggler/subwaytooter/util/EmojiDecoder.kt index a53c4507..b2d90b48 100644 --- a/app/src/main/java/jp/juggler/subwaytooter/util/EmojiDecoder.kt +++ b/app/src/main/java/jp/juggler/subwaytooter/util/EmojiDecoder.kt @@ -113,10 +113,11 @@ object EmojiDecoder { ) } - internal fun addImageSpan(text : String?, @DrawableRes res_id : Int) { + internal fun addImageSpan(text : String, @DrawableRes res_id : Int) { val context = options.context if(context == null) { - addUnicodeString("(missing context)") + openNormalText() + sb.append(text) } else { closeNormalText() val start = sb.length