1
0
mirror of https://github.com/tateisu/SubwayTooter synced 2024-12-23 23:54:51 +01:00
This commit is contained in:
tateisu 2018-05-01 13:43:27 +09:00
parent e84bd91f20
commit b005777a05
2 changed files with 7 additions and 2 deletions

View File

@ -1,5 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Kotlin2JsCompilerArguments">
<option name="sourceMapEmbedSources" />
<option name="sourceMapPrefix" />
</component>
<component name="KotlinCommonCompilerArguments">
<option name="coroutinesState" value="enable" />
</component>

View File

@ -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