Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,18 @@ class InlineStyles(
if (spans.isEmpty()) return false

for (span in spans) {
val spanStart = spannable.getSpanStart(span)
val spanEnd = spannable.getSpanEnd(span)

spannable.removeSpan(span)

if (spanStart < start) {
setSpan(spannable, config.clazz, spanStart, start - 1)
}

if (spanEnd > end) {
setSpan(spannable, config.clazz, end, spanEnd)
}
Comment thread
kacperzolkiewski marked this conversation as resolved.
}

return true
Expand Down
Loading