From e4d6ec80c04561167000aa477e54f79a2f382c62 Mon Sep 17 00:00:00 2001 From: Jun Gu <2dxgujun@gmail.com> Date: Thu, 25 Jan 2018 10:20:36 +0800 Subject: [PATCH] v1.4 release, fix span build --- span/build.gradle | 2 +- span/src/main/kotlin/me/gujun/android/span/span.kt | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/span/build.gradle b/span/build.gradle index 81e794d..d32bbe0 100644 --- a/span/build.gradle +++ b/span/build.gradle @@ -23,7 +23,7 @@ dependencies { def GROUP = 'me.gujun.android' def ARTIFACTID = 'span' -def VERSION = '1.3' +def VERSION = '1.4' group = GROUP version = VERSION diff --git a/span/src/main/kotlin/me/gujun/android/span/span.kt b/span/src/main/kotlin/me/gujun/android/span/span.kt index d9c7ef3..7143499 100644 --- a/span/src/main/kotlin/me/gujun/android/span/span.kt +++ b/span/src/main/kotlin/me/gujun/android/span/span.kt @@ -157,9 +157,11 @@ class Span(val parent: Span? = null) : SpannableStringBuilder() { p = p.parent } append(text) + buildCharacterStyle(builder) + buildParagraphStyle(builder) + } else { + buildParagraphStyle(builder) } - buildCharacterStyle(builder) - buildParagraphStyle(builder) builder.addAll(spans) builder.forEach {