File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
aztec/src/main/kotlin/org/wordpress/aztec/spans Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -20,8 +20,8 @@ package org.wordpress.aztec.spans
2020import android.graphics.Canvas
2121import android.graphics.Paint
2222import android.graphics.Path
23- import android.os.Parcel
2423import android.text.Layout
24+ import android.text.Spanned
2525import android.text.TextUtils
2626import org.wordpress.aztec.formatting.BlockFormatter
2727
@@ -75,6 +75,11 @@ class AztecUnorderedListSpan : AztecListSpan {
7575 first : Boolean , l : Layout ) {
7676 if (! first) return
7777
78+ val spanStart = (text as Spanned ).getSpanStart(this )
79+ val spanEnd = text.getSpanEnd(this )
80+
81+ if (start !in spanStart.. spanEnd || end !in spanStart.. spanEnd) return
82+
7883 val style = p.style
7984 val oldColor = p.color
8085
You can’t perform that action at this time.
0 commit comments